@cabloy/dotenv 1.0.0 → 1.0.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
File without changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export declare function loadEnvs(meta: object, dir: string, prefix?: string, postfix?: string): object | undefined;
1
+ import { DotenvParseOutput } from 'dotenv';
2
+ export declare function loadEnvs(meta: object, dir: string, prefix?: string, postfix?: string): DotenvParseOutput | undefined;
2
3
  export declare function metaToScope(meta: object): {};
3
4
  export declare function getEnvFiles(meta: object, dir: string, prefix: string, postfix?: string): string[] | undefined;
4
5
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -51,9 +51,11 @@ function getEnvFiles(meta, dir, prefix, postfix) {
51
51
  // scope
52
52
  const scope = metaToScope(meta);
53
53
  // extend
54
- const keys = (0, cascade_extend_1.cascadeExtendKeys)(scope, source, prefix, '.');
54
+ let keys = (0, cascade_extend_1.cascadeExtendKeys)(scope, source, prefix, '.');
55
55
  if (!keys)
56
56
  return undefined;
57
+ // mine
58
+ keys = keys.filter(item => item.indexOf('.mine') === -1).concat(keys.filter(item => item.indexOf('.mine') > -1));
57
59
  // files
58
60
  files = keys.map(key => {
59
61
  let file = `${dir}/${key}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cabloy/dotenv",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "cabloy dotenv",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -21,6 +21,9 @@
21
21
  "dist/**/*.js",
22
22
  "dist/**/*.d.ts"
23
23
  ],
24
+ "scripts": {
25
+ "lint": "eslint ."
26
+ },
24
27
  "keywords": [
25
28
  "egg",
26
29
  "egg-born",
@@ -32,9 +35,6 @@
32
35
  "cascade-extend": "^1.0.3",
33
36
  "dotenv": "^16.4.5",
34
37
  "dotenv-expand": "^11.0.6",
35
- "egg-born-utils": "^1.1.9"
36
- },
37
- "scripts": {
38
- "lint": "eslint ."
38
+ "egg-born-utils": "^1.2.0"
39
39
  }
40
- }
40
+ }
package/LICENSE.en-US DELETED
@@ -1,3 +0,0 @@
1
- Copyright (c) 2016-present CabloyJS
2
-
3
- CabloyJS 5.0 internal beta version, still under continuous development, not yet open source, please do not spread it
package/LICENSE.zh-CN DELETED
@@ -1,3 +0,0 @@
1
- Copyright (c) 2016-present CabloyJS
2
-
3
- CabloyJS 5.0 内测版,仍在持续开发中,尚未开源,请勿扩散