@faasjs/func 0.0.2-beta.326 → 0.0.2-beta.330
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 +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -74,11 +74,11 @@ var Func = class {
|
|
|
74
74
|
this.plugins = (_a = config.plugins) != null ? _a : [];
|
|
75
75
|
this.plugins.push(new RunHandler());
|
|
76
76
|
this.config = {
|
|
77
|
-
providers: Object.create(null),
|
|
78
|
-
plugins: Object.create(null)
|
|
77
|
+
providers: /* @__PURE__ */ Object.create(null),
|
|
78
|
+
plugins: /* @__PURE__ */ Object.create(null)
|
|
79
79
|
};
|
|
80
80
|
this.mounted = false;
|
|
81
|
-
this.cachedFunctions = Object.create(null);
|
|
81
|
+
this.cachedFunctions = /* @__PURE__ */ Object.create(null);
|
|
82
82
|
try {
|
|
83
83
|
this.filename = new Error().stack.split("\n").find((s) => /[^/]\.func\.ts/.test(s)).match(/\((.*\.func\.ts).*\)/)[1];
|
|
84
84
|
} catch (error) {
|
|
@@ -165,7 +165,7 @@ var Func = class {
|
|
|
165
165
|
}
|
|
166
166
|
export(config) {
|
|
167
167
|
if (!this.config)
|
|
168
|
-
this.config = config || Object.create(null);
|
|
168
|
+
this.config = config || /* @__PURE__ */ Object.create(null);
|
|
169
169
|
return {
|
|
170
170
|
handler: async (event, context, callback) => {
|
|
171
171
|
const logger = new import_logger.Logger();
|
package/dist/index.mjs
CHANGED
|
@@ -45,11 +45,11 @@ var Func = class {
|
|
|
45
45
|
this.plugins = (_a = config.plugins) != null ? _a : [];
|
|
46
46
|
this.plugins.push(new RunHandler());
|
|
47
47
|
this.config = {
|
|
48
|
-
providers: Object.create(null),
|
|
49
|
-
plugins: Object.create(null)
|
|
48
|
+
providers: /* @__PURE__ */ Object.create(null),
|
|
49
|
+
plugins: /* @__PURE__ */ Object.create(null)
|
|
50
50
|
};
|
|
51
51
|
this.mounted = false;
|
|
52
|
-
this.cachedFunctions = Object.create(null);
|
|
52
|
+
this.cachedFunctions = /* @__PURE__ */ Object.create(null);
|
|
53
53
|
try {
|
|
54
54
|
this.filename = new Error().stack.split("\n").find((s) => /[^/]\.func\.ts/.test(s)).match(/\((.*\.func\.ts).*\)/)[1];
|
|
55
55
|
} catch (error) {
|
|
@@ -136,7 +136,7 @@ var Func = class {
|
|
|
136
136
|
}
|
|
137
137
|
export(config) {
|
|
138
138
|
if (!this.config)
|
|
139
|
-
this.config = config || Object.create(null);
|
|
139
|
+
this.config = config || /* @__PURE__ */ Object.create(null);
|
|
140
140
|
return {
|
|
141
141
|
handler: async (event, context, callback) => {
|
|
142
142
|
const logger = new Logger();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/func",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.330",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"dist"
|
|
24
24
|
],
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@faasjs/deep_merge": "^0.0.2-beta.
|
|
27
|
-
"@faasjs/logger": "^0.0.2-beta.
|
|
26
|
+
"@faasjs/deep_merge": "^0.0.2-beta.330",
|
|
27
|
+
"@faasjs/logger": "^0.0.2-beta.330"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"tsup": "*",
|