@faasjs/load 0.0.2-beta.320 → 0.0.2-beta.324
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.
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -187,7 +187,8 @@ function findModule(list, key, options = { excludes: [] }) {
|
|
|
187
187
|
Object.keys(pkg.peerDependenciesMeta).forEach((key2) => {
|
|
188
188
|
if (pkg.peerDependenciesMeta[key2].optional) {
|
|
189
189
|
const index = deps.indexOf(key2);
|
|
190
|
-
|
|
190
|
+
if (index >= 0)
|
|
191
|
+
deps.splice(index, 1);
|
|
191
192
|
}
|
|
192
193
|
});
|
|
193
194
|
}
|
|
@@ -223,7 +224,7 @@ async function loadTs(filename, options = Object.create(null)) {
|
|
|
223
224
|
swc({
|
|
224
225
|
jsc: {
|
|
225
226
|
parser: { syntax: "typescript" },
|
|
226
|
-
target: "
|
|
227
|
+
target: "es2019"
|
|
227
228
|
}
|
|
228
229
|
})
|
|
229
230
|
],
|
package/dist/index.mjs
CHANGED
|
@@ -168,7 +168,8 @@ function findModule(list, key, options = { excludes: [] }) {
|
|
|
168
168
|
Object.keys(pkg.peerDependenciesMeta).forEach((key2) => {
|
|
169
169
|
if (pkg.peerDependenciesMeta[key2].optional) {
|
|
170
170
|
const index = deps.indexOf(key2);
|
|
171
|
-
|
|
171
|
+
if (index >= 0)
|
|
172
|
+
deps.splice(index, 1);
|
|
172
173
|
}
|
|
173
174
|
});
|
|
174
175
|
}
|
|
@@ -204,7 +205,7 @@ async function loadTs(filename, options = Object.create(null)) {
|
|
|
204
205
|
swc({
|
|
205
206
|
jsc: {
|
|
206
207
|
parser: { syntax: "typescript" },
|
|
207
|
-
target: "
|
|
208
|
+
target: "es2019"
|
|
208
209
|
}
|
|
209
210
|
})
|
|
210
211
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/load",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.324",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@faasjs/deep_merge": "^0.0.2-beta.
|
|
26
|
-
"@faasjs/func": "^0.0.2-beta.
|
|
25
|
+
"@faasjs/deep_merge": "^0.0.2-beta.324",
|
|
26
|
+
"@faasjs/func": "^0.0.2-beta.324",
|
|
27
27
|
"@rollup/plugin-node-resolve": "*",
|
|
28
28
|
"@swc/core": "*",
|
|
29
29
|
"js-yaml": "*",
|