Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-js

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-js - npm Package Compare versions

Comparing version 0.0.4-0 to 0.0.5

44

dist/angular-get.js

@@ -48,3 +48,3 @@ /******/ (function(modules) { // webpackBootstrap

\********************/
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {

@@ -54,3 +54,3 @@ module.exports = __webpack_require__(/*! ./lib/angular/module */ 1).default;

/***/ },
/***/ }),
/* 1 */

@@ -60,3 +60,3 @@ /*!*******************************!*\

\*******************************/
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {

@@ -85,3 +85,3 @@ 'use strict';

/***/ },
/***/ }),
/* 2 */

@@ -91,7 +91,7 @@ /*!**************************!*\

\**************************/
/***/ function(module, exports) {
/***/ (function(module, exports) {
module.exports = angular;
/***/ },
/***/ }),
/* 3 */

@@ -101,3 +101,3 @@ /*!***********************************!*\

\***********************************/
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {

@@ -125,3 +125,3 @@ 'use strict';

/***/ },
/***/ }),
/* 4 */

@@ -131,3 +131,3 @@ /*!********************!*\

\********************/
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {

@@ -140,4 +140,2 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _util = __webpack_require__(/*! ./util */ 5);

@@ -203,17 +201,11 @@

} else if ((0, _util.isArray)(src)) {
var _ret = function () {
var p = Promise.resolve(true);
var p = Promise.resolve(true);
src.forEach(function (url) {
p = p.then(function () {
return get(url);
});
src.forEach(function (url) {
p = p.then(function () {
return get(url);
});
});
return {
v: p
};
}();
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
return p;
}

@@ -226,3 +218,3 @@

/***/ },
/***/ }),
/* 5 */

@@ -232,3 +224,3 @@ /*!*********************!*\

\*********************/
/***/ function(module, exports) {
/***/ (function(module, exports) {

@@ -254,4 +246,4 @@ 'use strict';

/***/ }
/***/ })
/******/ ]);
//# sourceMappingURL=angular-get.js.map

@@ -1,1 +0,1 @@

!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(2)["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t){return function(e,n){return t.resolve((0,i["default"])(e,n))}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=o;var u=n(3),i=r(u);o.$inject=["$q"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),u=r(o),i=n(1),c=r(i),f=u["default"].module("angularGetJs",[]);f.factory("get",c["default"]),e["default"]=f.name},function(t,e,n){"use strict";function r(t,e,n){var r=function(){c[t]=!0,(0,i.isFunction)(e)&&e()};if(c[t])return void r();var o=document.createElement("script");o.type="text/javascript",o.readyState?o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(o.onreadystatechange=null,r())}:o.onload=function(){r()},o.onerror=function(e){c[t]=!1,console.log("error",e),(0,i.isFunction)(n)&&n()},o.src=t;var u=document.body||document.head||document;u.appendChild(o)}function o(t,e){if((0,i.isString)(t))return new Promise(function(e,n){r(t,function(){return e(!0)},function(){return n()})});if((0,i.isArray)(t)){var n=function(){var e=Promise.resolve(!0);return t.forEach(function(t){e=e.then(function(){return o(t)})}),{v:e}}();if("object"===("undefined"==typeof n?"undefined":u(n)))return n.v}throw new Error("Invalid argument for get()")}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},i=n(4),c={};e["default"]=o},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=function(t){return"string"==typeof t},o=function(t){return"function"==typeof t};e.isArray=n,e.isString=r,e.isFunction=o},function(t,e){t.exports=angular}]);
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(2).default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return function(t,n){return e.resolve((0,i.default)(t,n))}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var u=n(3),i=r(u);o.$inject=["$q"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),u=r(o),i=n(1),a=r(i),c=u.default.module("angularGetJs",[]);c.factory("get",a.default),t.default=c.name},function(e,t,n){"use strict";function r(e,t,n){var r=function(){i[e]=!0,(0,u.isFunction)(t)&&t()};if(i[e])return void r();var o=document.createElement("script");o.type="text/javascript",o.readyState?o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(o.onreadystatechange=null,r())}:o.onload=function(){r()},o.onerror=function(t){i[e]=!1,console.log("error",t),(0,u.isFunction)(n)&&n()},o.src=e;var a=document.body||document.head||document;a.appendChild(o)}function o(e,t){if((0,u.isString)(e))return new Promise(function(t,n){r(e,function(){return t(!0)},function(){return n()})});if((0,u.isArray)(e)){var n=Promise.resolve(!0);return e.forEach(function(e){n=n.then(function(){return o(e)})}),n}throw new Error("Invalid argument for get()")}Object.defineProperty(t,"__esModule",{value:!0});var u=n(4),i={};t.default=o},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=function(e){return"string"==typeof e},o=function(e){return"function"==typeof e};t.isArray=n,t.isString=r,t.isFunction=o},function(e,t){e.exports=angular}]);

@@ -49,3 +49,3 @@ window["get"] =

\******************/
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {

@@ -55,3 +55,3 @@ module.exports = __webpack_require__(/*! ./lib/get.js */ 1).default;

/***/ },
/***/ }),
/* 1 */

@@ -61,3 +61,3 @@ /*!********************!*\

\********************/
/***/ function(module, exports, __webpack_require__) {
/***/ (function(module, exports, __webpack_require__) {

@@ -70,4 +70,2 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _util = __webpack_require__(/*! ./util */ 2);

@@ -133,17 +131,11 @@

} else if ((0, _util.isArray)(src)) {
var _ret = function () {
var p = Promise.resolve(true);
var p = Promise.resolve(true);
src.forEach(function (url) {
p = p.then(function () {
return get(url);
});
src.forEach(function (url) {
p = p.then(function () {
return get(url);
});
});
return {
v: p
};
}();
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
return p;
}

@@ -156,3 +148,3 @@

/***/ },
/***/ }),
/* 2 */

@@ -162,3 +154,3 @@ /*!*********************!*\

\*********************/
/***/ function(module, exports) {
/***/ (function(module, exports) {

@@ -184,4 +176,4 @@ 'use strict';

/***/ }
/***/ })
/******/ ]);
//# sourceMappingURL=get.js.map

@@ -1,1 +0,1 @@

window.get=function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){t.exports=e(1)["default"]},function(t,n,e){"use strict";function r(t,n,e){var r=function(){c[t]=!0,(0,u.isFunction)(n)&&n()};if(c[t])return void r();var o=document.createElement("script");o.type="text/javascript",o.readyState?o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(o.onreadystatechange=null,r())}:o.onload=function(){r()},o.onerror=function(n){c[t]=!1,console.log("error",n),(0,u.isFunction)(e)&&e()},o.src=t;var i=document.body||document.head||document;i.appendChild(o)}function o(t,n){if((0,u.isString)(t))return new Promise(function(n,e){r(t,function(){return n(!0)},function(){return e()})});if((0,u.isArray)(t)){var e=function(){var n=Promise.resolve(!0);return t.forEach(function(t){n=n.then(function(){return o(t)})}),{v:n}}();if("object"===("undefined"==typeof e?"undefined":i(e)))return e.v}throw new Error("Invalid argument for get()")}Object.defineProperty(n,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},u=e(2),c={};n["default"]=o},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=function(t){return"string"==typeof t},o=function(t){return"function"==typeof t};n.isArray=e,n.isString=r,n.isFunction=o}]);
window.get=function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}var e={};return n.m=t,n.c=e,n.p="",n(0)}([function(t,n,e){t.exports=e(1).default},function(t,n,e){"use strict";function r(t,n,e){var r=function(){u[t]=!0,(0,i.isFunction)(n)&&n()};if(u[t])return void r();var o=document.createElement("script");o.type="text/javascript",o.readyState?o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(o.onreadystatechange=null,r())}:o.onload=function(){r()},o.onerror=function(n){u[t]=!1,console.log("error",n),(0,i.isFunction)(e)&&e()},o.src=t;var c=document.body||document.head||document;c.appendChild(o)}function o(t,n){if((0,i.isString)(t))return new Promise(function(n,e){r(t,function(){return n(!0)},function(){return e()})});if((0,i.isArray)(t)){var e=Promise.resolve(!0);return t.forEach(function(t){e=e.then(function(){return o(t)})}),e}throw new Error("Invalid argument for get()")}Object.defineProperty(n,"__esModule",{value:!0});var i=e(2),u={};n.default=o},function(t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var e=function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=function(t){return"string"==typeof t},o=function(t){return"function"==typeof t};n.isArray=e,n.isString=r,n.isFunction=o}]);

@@ -7,4 +7,2 @@ 'use strict';

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _util = require('./util');

@@ -70,17 +68,11 @@

} else if ((0, _util.isArray)(src)) {
var _ret = function () {
var p = Promise.resolve(true);
var p = Promise.resolve(true);
src.forEach(function (url) {
p = p.then(function () {
return get(url);
});
src.forEach(function (url) {
p = p.then(function () {
return get(url);
});
});
return {
v: p
};
}();
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
return p;
}

@@ -87,0 +79,0 @@

{
"name": "get-js",
"version": "0.0.4-0",
"version": "0.0.5",
"description": "A lightweight promise based package to load scripts on the fly",
"main": "index.js",
"dependencies": {
"angular": "^1.3.*"
},
"devDependencies": {

@@ -10,0 +7,0 @@ "babel-cli": "^6.7.7",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc