@paciolan/remote-module-loader 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@ var createLoadRemoteModule = function (_a) {
|
|
|
14
14
|
var _b = _a === void 0 ? {} : _a, requires = _b.requires, fetcher = _b.fetcher;
|
|
15
15
|
var _requires = requires || defaultRequires;
|
|
16
16
|
var _fetcher = fetcher || defaultFetcher;
|
|
17
|
-
return memoize_1["default"](function (url) {
|
|
17
|
+
return (0, memoize_1["default"])(function (url) {
|
|
18
18
|
return _fetcher(url).then(function (data) {
|
|
19
19
|
var exports = {};
|
|
20
20
|
var module = { exports: exports };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadRemoteModule.js","sourceRoot":"","sources":["../../src/lib/loadRemoteModule.ts"],"names":[],"mappings":";;;AAAA,qCAAgC;AAChC,uDAAkE;AAClE,6CAAwC;AAExC,IAAM,SAAS,GACb,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,WAAW,CAAC;AAE1E,8CAA8C;AAC9C,IAAM,cAAc,GAAG,SAAS,CAAC,CAAC,CAAC,kBAAqB,CAAC,CAAC,CAAC,wBAAW,CAAC;AAEvE,IAAM,eAAe,GAAG,UAAA,IAAI;IAC1B,MAAM,IAAI,KAAK,CACb,wBAAsB,IAAI,iDAA8C,CACzE,CAAC;AACJ,CAAC,CAAC;AAeK,IAAM,sBAAsB,GAA2B,UAAC,EAGzD;QAHyD,qBAG3D,EAAE,KAAA,EAFJ,QAAQ,cAAA,EACR,OAAO,aAAA;IAEP,IAAM,SAAS,GAAG,QAAQ,IAAI,eAAe,CAAC;IAC9C,IAAM,QAAQ,GAAG,OAAO,IAAI,cAAc,CAAC;IAE3C,OAAO,oBAAO,
|
|
1
|
+
{"version":3,"file":"loadRemoteModule.js","sourceRoot":"","sources":["../../src/lib/loadRemoteModule.ts"],"names":[],"m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adArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
8
10
|
};
|
|
9
11
|
exports.__esModule = true;
|
|
10
12
|
var http = require("http");
|
|
@@ -26,7 +28,7 @@ var get = function (url) {
|
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
return url.indexOf("https://") === 0
|
|
29
|
-
? https.get.apply(https,
|
|
31
|
+
? https.get.apply(https, __spreadArray([url], args, false)) : http.get.apply(http, __spreadArray([url], args, false));
|
|
30
32
|
};
|
|
31
33
|
/**
|
|
32
34
|
* Get's a URL and returns a Promise
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodeFetcher.js","sourceRoot":"","sources":["../../src/lib/nodeFetcher.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nodeFetcher.js","sourceRoot":"","sources":["../../src/lib/nodeFetcher.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,2BAA6B;AAC7B,6BAA+B;AAE/B,mCAA6B;AAM7B;;GAEG;AACH,IAAM,GAAG,GAAY,UAAC,GAAG;IAAE,cAAO;SAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;QAAP,6BAAO;;IAChC,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC3B,OAAO;YACL,EAAE,YAAC,SAAS,EAAE,QAAQ;gBACpB,QAAQ,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC;YAC/C,CAAC;SACoB,CAAC;KACzB;IACD,OAAO,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC;QAClC,CAAC,CAAC,KAAK,CAAC,GAAG,OAAT,KAAK,iBAAK,GAAG,GAAK,IAAI,UACxB,CAAC,CAAC,IAAI,CAAC,GAAG,OAAR,IAAI,iBAAK,GAAG,GAAK,IAAI,SAAC,CAAC;AAC7B,CAAC,CAAC;AAEF;;GAEG;AACH,IAAM,WAAW,GAAY,UAAA,GAAG;IAC9B,OAAA,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QAC1B,GAAG,CAAC,GAAG,EAAE,UAAA,GAAG;YACV,IAAI,GAAG,CAAC,UAAU,KAAK,WAAE,EAAE;gBACzB,OAAO,MAAM,CAAC,IAAI,KAAK,CAAC,0BAAwB,GAAG,CAAC,UAAU,SAAI,GAAG,CAAC,aAAa,UAAK,GAAG,MAAG,CAAC,CAAC,CAAA;aACjG;YAED,IAAI,IAAI,GAAG,IAAI,CAAC;YAEhB,wCAAwC;YACxC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,UAAA,KAAK;gBAClB,IAAI,IAAI,KAAK,IAAI,EAAE;oBACjB,IAAI,GAAG,KAAK,CAAC;oBACb,OAAO;iBACR;gBACD,IAAI,IAAI,KAAK,CAAC;YAChB,CAAC,CAAC,CAAC;YAEH,iDAAiD;YACjD,GAAG,CAAC,EAAE,CAAC,KAAK,EAAE,cAAM,OAAA,OAAO,CAAC,IAAI,CAAC,EAAb,CAAa,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACzB,CAAC,CAAC;AApBF,CAoBE,CAAC;AAEL,qBAAe,WAAW,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paciolan/remote-module-loader",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Paciolan",
|
|
@@ -34,21 +34,20 @@
|
|
|
34
34
|
"test:coverage": "npm run test -- --coverage",
|
|
35
35
|
"lint": "eslint ."
|
|
36
36
|
},
|
|
37
|
-
"dependencies": {},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"@babel/cli": "^7.12.8",
|
|
40
39
|
"@babel/core": "^7.12.9",
|
|
41
40
|
"@babel/preset-env": "^7.12.7",
|
|
42
41
|
"@babel/preset-typescript": "^7.12.7",
|
|
43
|
-
"@commitlint/cli": "^
|
|
44
|
-
"@commitlint/config-conventional": "^
|
|
45
|
-
"@types/jest": "^
|
|
46
|
-
"@types/node": "^
|
|
42
|
+
"@commitlint/cli": "^14.1.0",
|
|
43
|
+
"@commitlint/config-conventional": "^14.1.0",
|
|
44
|
+
"@types/jest": "^27.0.2",
|
|
45
|
+
"@types/node": "^16.11.7",
|
|
47
46
|
"babel-loader": "^8.2.2",
|
|
48
47
|
"cross-env": "^7.0.3",
|
|
49
|
-
"eslint": "^
|
|
50
|
-
"eslint-config-prettier": "^
|
|
51
|
-
"eslint-plugin-prettier": "^
|
|
48
|
+
"eslint": "^8.2.0",
|
|
49
|
+
"eslint-config-prettier": "^8.3.0",
|
|
50
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
52
51
|
"git-cz": "^4.7.5",
|
|
53
52
|
"husky": "^4.3.0",
|
|
54
53
|
"jest": "^26.6.3",
|
package/changelog.config.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
list: [
|
|
3
|
-
"test",
|
|
4
|
-
"feat",
|
|
5
|
-
"fix",
|
|
6
|
-
"chore",
|
|
7
|
-
"docs",
|
|
8
|
-
"refactor",
|
|
9
|
-
"style",
|
|
10
|
-
"ci",
|
|
11
|
-
"perf"
|
|
12
|
-
],
|
|
13
|
-
maxMessageLength: 64,
|
|
14
|
-
minMessageLength: 3,
|
|
15
|
-
questions: [
|
|
16
|
-
"type",
|
|
17
|
-
"scope",
|
|
18
|
-
"subject",
|
|
19
|
-
"body",
|
|
20
|
-
"breaking",
|
|
21
|
-
"issues",
|
|
22
|
-
"lerna"
|
|
23
|
-
],
|
|
24
|
-
scopes: [],
|
|
25
|
-
types: {
|
|
26
|
-
chore: {
|
|
27
|
-
description: "Build process or auxiliary tool changes",
|
|
28
|
-
emoji: "🛠️",
|
|
29
|
-
value: "chore"
|
|
30
|
-
},
|
|
31
|
-
ci: {
|
|
32
|
-
description: "CI related changes",
|
|
33
|
-
emoji: "🤖",
|
|
34
|
-
value: "ci"
|
|
35
|
-
},
|
|
36
|
-
docs: {
|
|
37
|
-
description: "Documentation only changes",
|
|
38
|
-
emoji: "📚",
|
|
39
|
-
value: "docs"
|
|
40
|
-
},
|
|
41
|
-
feat: {
|
|
42
|
-
description: "A new feature",
|
|
43
|
-
emoji: "✨",
|
|
44
|
-
value: "feat"
|
|
45
|
-
},
|
|
46
|
-
fix: {
|
|
47
|
-
description: "A bug fix",
|
|
48
|
-
emoji: "🐛",
|
|
49
|
-
value: "fix"
|
|
50
|
-
},
|
|
51
|
-
perf: {
|
|
52
|
-
description: "A code change that improves performance",
|
|
53
|
-
emoji: "⚡️",
|
|
54
|
-
value: "perf"
|
|
55
|
-
},
|
|
56
|
-
refactor: {
|
|
57
|
-
description: "A code change that neither fixes a bug or adds a feature",
|
|
58
|
-
emoji: "💡",
|
|
59
|
-
value: "refactor"
|
|
60
|
-
},
|
|
61
|
-
release: {
|
|
62
|
-
description: "Create a release commit",
|
|
63
|
-
emoji: "🚀",
|
|
64
|
-
value: "release"
|
|
65
|
-
},
|
|
66
|
-
style: {
|
|
67
|
-
description: "Markup, white-space, formatting, missing semi-colons...",
|
|
68
|
-
emoji: "🎨",
|
|
69
|
-
value: "style"
|
|
70
|
-
},
|
|
71
|
-
test: {
|
|
72
|
-
description: "Adding missing tests",
|
|
73
|
-
emoji: "🚨",
|
|
74
|
-
value: "test"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
};
|