@faasjs/load 0.0.4-beta.9 → 0.0.5-beta.2

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/README.md CHANGED
@@ -39,7 +39,7 @@ ___
39
39
 
40
40
  ### loadTs
41
41
 
42
- ▸ **loadTs**(`filename`, `options?`): `Promise`<{ `dependencies`: { `[key: string]`: `string`; } ; `module?`: `Func` ; `modules?`: { `[key: string]`: `string`; } }\>
42
+ ▸ **loadTs**(`filename`, `options?`): `Promise`\<\{ `dependencies`: \{ `[key: string]`: `string`; } ; `module?`: `Func` ; `modules?`: \{ `[key: string]`: `string`; } }\>
43
43
 
44
44
  加载 ts 文件
45
45
 
@@ -58,4 +58,4 @@ ___
58
58
 
59
59
  #### Returns
60
60
 
61
- `Promise`<{ `dependencies`: { `[key: string]`: `string`; } ; `module?`: `Func` ; `modules?`: { `[key: string]`: `string`; } }\>
61
+ `Promise`\<\{ `dependencies`: \{ `[key: string]`: `string`; } ; `module?`: `Func` ; `modules?`: \{ `[key: string]`: `string`; } }\>
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ var Config = class {
30
30
  const paths = [this.root, "."].concat(
31
31
  path.dirname(filename.replace(root, "")).split(path.sep)
32
32
  );
33
- paths.reduce(function(base, path$1) {
33
+ paths.reduce((base, path$1) => {
34
34
  const root2 = path.join(base, path$1);
35
35
  if (root2 === base)
36
36
  return base;
package/dist/index.mjs CHANGED
@@ -28,7 +28,7 @@ var Config = class {
28
28
  const paths = [this.root, "."].concat(
29
29
  dirname(filename.replace(root, "")).split(sep)
30
30
  );
31
- paths.reduce(function(base, path) {
31
+ paths.reduce((base, path) => {
32
32
  const root2 = join(base, path);
33
33
  if (root2 === base)
34
34
  return base;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/load",
3
- "version": "0.0.4-beta.9",
3
+ "version": "0.0.5-beta.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,15 +25,15 @@
25
25
  "rollup": "*"
26
26
  },
27
27
  "peerDependencies": {
28
- "@faasjs/deep_merge": "0.0.4-beta.9",
29
- "@faasjs/func": "0.0.4-beta.9",
30
- "@faasjs/ts-transform": "0.0.4-beta.9"
28
+ "@faasjs/deep_merge": "0.0.5-beta.2",
29
+ "@faasjs/func": "0.0.5-beta.2",
30
+ "@faasjs/ts-transform": "0.0.5-beta.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/js-yaml": "*",
34
- "@faasjs/deep_merge": "0.0.4-beta.9",
35
- "@faasjs/func": "0.0.4-beta.9",
36
- "@faasjs/ts-transform": "0.0.4-beta.9"
34
+ "@faasjs/deep_merge": "0.0.5-beta.2",
35
+ "@faasjs/func": "0.0.5-beta.2",
36
+ "@faasjs/ts-transform": "0.0.5-beta.2"
37
37
  },
38
38
  "engines": {
39
39
  "npm": ">=9.0.0",