@faasjs/load 3.1.0 → 3.1.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.
- package/dist/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -36,14 +36,12 @@ var Config = class {
|
|
|
36
36
|
const root2 = path.join(base, path$1);
|
|
37
37
|
if (root2 === base) return base;
|
|
38
38
|
const faas = path.join(root2, "faas.yaml");
|
|
39
|
-
console.log(faas);
|
|
40
39
|
if (fs.existsSync(faas))
|
|
41
40
|
configs.push(
|
|
42
41
|
jsYaml.load(fs.readFileSync(faas).toString())
|
|
43
42
|
);
|
|
44
43
|
return root2;
|
|
45
44
|
});
|
|
46
|
-
console.log(configs);
|
|
47
45
|
this.origin = deep_merge.deepMerge(...configs);
|
|
48
46
|
this.defaults = deep_merge.deepMerge(this.origin.defaults || {});
|
|
49
47
|
for (const key in this.origin) {
|
package/dist/index.mjs
CHANGED
|
@@ -34,14 +34,12 @@ var Config = class {
|
|
|
34
34
|
const root2 = join(base, path);
|
|
35
35
|
if (root2 === base) return base;
|
|
36
36
|
const faas = join(root2, "faas.yaml");
|
|
37
|
-
console.log(faas);
|
|
38
37
|
if (existsSync(faas))
|
|
39
38
|
configs.push(
|
|
40
39
|
load(readFileSync(faas).toString())
|
|
41
40
|
);
|
|
42
41
|
return root2;
|
|
43
42
|
});
|
|
44
|
-
console.log(configs);
|
|
45
43
|
this.origin = deepMerge(...configs);
|
|
46
44
|
this.defaults = deepMerge(this.origin.defaults || {});
|
|
47
45
|
for (const key in this.origin) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/load",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"rollup": "*"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@faasjs/deep_merge": "3.1.
|
|
42
|
-
"@faasjs/func": "3.1.
|
|
43
|
-
"@faasjs/ts-transform": "3.1.
|
|
41
|
+
"@faasjs/deep_merge": "3.1.1",
|
|
42
|
+
"@faasjs/func": "3.1.1",
|
|
43
|
+
"@faasjs/ts-transform": "3.1.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/js-yaml": "*",
|
|
47
|
-
"@faasjs/deep_merge": "3.1.
|
|
48
|
-
"@faasjs/func": "3.1.
|
|
49
|
-
"@faasjs/ts-transform": "3.1.
|
|
47
|
+
"@faasjs/deep_merge": "3.1.1",
|
|
48
|
+
"@faasjs/func": "3.1.1",
|
|
49
|
+
"@faasjs/ts-transform": "3.1.1"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=22.0.0",
|