From 52101edbae2df430834da700004193be462b3b34 Mon Sep 17 00:00:00 2001 From: nobody42 <5514211-nobody42@users.noreply.gitlab.com> Date: Mon, 13 Apr 2020 07:00:44 +0200 Subject: [PATCH] Added angular-resource.min.js of AngularJS v1.7.9 --- core/files.js | 1 + core/mappings.js | 1 + core/resources.js | 4 ++++ modules/internal/helpers.js | 2 ++ pages/updates/updates.html | 1 + .../angularjs/1.7.9/angular-resource.min.jsm | 15 +++++++++++++++ 6 files changed, 24 insertions(+) create mode 100644 resources/angularjs/1.7.9/angular-resource.min.jsm diff --git a/core/files.js b/core/files.js index 0f969d60..ef2d49a7 100644 --- a/core/files.js +++ b/core/files.js @@ -33,6 +33,7 @@ var files = { 'resources/angularjs/1.7.9/angular-animated.min.jsm': true, 'resources/angularjs/1.7.9/angular-sanitize.min.jsm': true, 'resources/angularjs/1.7.9/angular-cookies.min.jsm': true, + 'resources/angularjs/1.7.9/angular-resource.min.jsm': true, 'resources/angularjs/1.7.9/angular-touch.min.jsm': true, // AngularJS Slider diff --git a/core/mappings.js b/core/mappings.js index cedeb70a..32e5e1ba 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -28,6 +28,7 @@ var mappings = { 'angularjs/{version}/angular-animate.': resources.angularAnimate, 'angularjs/{version}/angular-sanitize.': resources.angularSanitize, 'angularjs/{version}/angular-cookies.': resources.angularCookies, + 'angularjs/{version}/angular-resource.': resources.angularResource, 'angularjs/{version}/angular-touch.': resources.angularTouch, 'dojo/{version}/dojo/dojo.': resources.dojo, 'ext-core/{version}/ext-core.': resources.extCore, diff --git a/core/resources.js b/core/resources.js index 9f0aaa3a..4a19f376 100644 --- a/core/resources.js +++ b/core/resources.js @@ -46,6 +46,10 @@ var resources = { 'path': 'resources/angularjs/{version}/angular-cookies.min.jsm', 'type': 'application/javascript' }, + 'angularResource': { + 'path': 'resources/angularjs/{version}/angular-resource.min.jsm', + 'type': 'application/javascript' + }, 'angularTouch': { 'path': 'resources/angularjs/{version}/angular-touch.min.jsm', 'type': 'application/javascript' diff --git a/modules/internal/helpers.js b/modules/internal/helpers.js index dc2e2904..d18ccf85 100644 --- a/modules/internal/helpers.js +++ b/modules/internal/helpers.js @@ -221,6 +221,8 @@ helpers.determineResourceName = function (filename) { return 'AngularJS slider'; case 'angular-cookies.min.jsm': return 'AngularJS Cookies'; + case 'angular-resource.min.jsm': + return 'AngularJS Resource'; case 'angular-sanitize.min.jsm': return 'AngularJS Sanitize'; case 'angular-touch.min.jsm': diff --git a/pages/updates/updates.html b/pages/updates/updates.html index a66ae20d..bd199d04 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -35,6 +35,7 @@
  • Added: Raven.js v3.26.2
  • Added: Socket.IO v2.3.0
  • Subdirectories for Angular Animate added
  • +
  • Added angular-resource.min.js of AngularJS v1.7.9
  • Please update your uBlock/uMatrix rules diff --git a/resources/angularjs/1.7.9/angular-resource.min.jsm b/resources/angularjs/1.7.9/angular-resource.min.jsm new file mode 100644 index 00000000..8b924c37 --- /dev/null +++ b/resources/angularjs/1.7.9/angular-resource.min.jsm @@ -0,0 +1,15 @@ +/* + AngularJS v1.7.9 + (c) 2010-2018 Google, Inc. http://angularjs.org + License: MIT +*/ +(function(T,a){'use strict';function M(m,f){f=f||{};a.forEach(f,function(a,d){delete f[d]});for(var d in m)!m.hasOwnProperty(d)||"$"===d.charAt(0)&&"$"===d.charAt(1)||(f[d]=m[d]);return f}var B=a.$$minErr("$resource"),H=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;a.module("ngResource",["ng"]).info({angularVersion:"1.7.9"}).provider("$resource",function(){var m=/^https?:\/\/\[[^\]]*][^/]*/,f=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET", +isArray:!0},remove:{method:"DELETE"},"delete":{method:"DELETE"}}};this.$get=["$http","$log","$q","$timeout",function(d,F,G,N){function C(a,d){this.template=a;this.defaults=n({},f.defaults,d);this.urlParams={}}var O=a.noop,r=a.forEach,n=a.extend,R=a.copy,P=a.isArray,D=a.isDefined,x=a.isFunction,I=a.isNumber,y=a.$$encodeUriQuery,S=a.$$encodeUriSegment;C.prototype={setUrlParams:function(a,d,f){var g=this,c=f||g.template,s,h,n="",b=g.urlParams=Object.create(null);r(c.split(/\W/),function(a){if("hasOwnProperty"=== +a)throw B("badname");!/^\d+$/.test(a)&&a&&(new RegExp("(^|[^\\\\]):"+a+"(\\W|$)")).test(c)&&(b[a]={isQueryParamValue:(new RegExp("\\?.*=:"+a+"(?:\\W|$)")).test(c)})});c=c.replace(/\\:/g,":");c=c.replace(m,function(b){n=b;return""});d=d||{};r(g.urlParams,function(b,a){s=d.hasOwnProperty(a)?d[a]:g.defaults[a];D(s)&&null!==s?(h=b.isQueryParamValue?y(s,!0):S(s),c=c.replace(new RegExp(":"+a+"(\\W|$)","g"),function(b,a){return h+a})):c=c.replace(new RegExp("(/?):"+a+"(\\W|$)","g"),function(b,a,e){return"/"=== +e.charAt(0)?e:a+e})});g.defaults.stripTrailingSlashes&&(c=c.replace(/\/+$/,"")||"/");c=c.replace(/\/\.(?=\w+($|\?))/,".");a.url=n+c.replace(/\/(\\|%5C)\./,"/.");r(d,function(b,c){g.urlParams[c]||(a.params=a.params||{},a.params[c]=b)})}};return function(m,y,z,g){function c(b,c){var d={};c=n({},y,c);r(c,function(c,f){x(c)&&(c=c(b));var e;if(c&&c.charAt&&"@"===c.charAt(0)){e=b;var k=c.substr(1);if(null==k||""===k||"hasOwnProperty"===k||!H.test("."+k))throw B("badmember",k);for(var k=k.split("."),h=0, +n=k.length;h