@restorecommerce/service-config 1.0.7 → 1.0.9

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/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.9](https://github.com/restorecommerce/libs/compare/@restorecommerce/service-config@1.0.8...@restorecommerce/service-config@1.0.9) (2023-10-24)
7
+
8
+ **Note:** Version bump only for package @restorecommerce/service-config
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.8](https://github.com/restorecommerce/libs/compare/@restorecommerce/service-config@1.0.7...@restorecommerce/service-config@1.0.8) (2023-10-14)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **acs:** fix decorator declaration ([9847528](https://github.com/restorecommerce/libs/commit/98475283139362e8f5d8d04ac243bb32087b17c2))
20
+ * **logger, service-config:** fix export statements ([e6a4d24](https://github.com/restorecommerce/libs/commit/e6a4d24fb61afc7820ccab95a852b13df32c048e))
21
+
22
+
23
+
24
+
25
+
6
26
  ## [1.0.7](https://github.com/restorecommerce/libs/compare/@restorecommerce/service-config@1.0.6...@restorecommerce/service-config@1.0.7) (2023-10-07)
7
27
 
8
28
  **Note:** Version bump only for package @restorecommerce/service-config
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as nconf from 'nconf';
1
+ import { Provider as ServiceConfig } from 'nconf';
2
2
  export interface ServiceConfigLogger {
3
3
  verbose(...args: any[]): any;
4
4
  }
@@ -6,5 +6,5 @@ export interface ServiceConfigOptions {
6
6
  stageVar?: string;
7
7
  logger?: ServiceConfigLogger;
8
8
  }
9
- export type ServiceConfig = nconf.Provider;
10
9
  export declare function createServiceConfig(baseDir: string, opts?: ServiceConfigOptions): ServiceConfig;
10
+ export { ServiceConfig };
package/dist/index.js CHANGED
@@ -23,9 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.createServiceConfig = void 0;
26
+ exports.ServiceConfig = exports.createServiceConfig = void 0;
27
27
  const path = __importStar(require("path"));
28
- const nconf = __importStar(require("nconf"));
28
+ const nconf_1 = require("nconf");
29
+ Object.defineProperty(exports, "ServiceConfig", { enumerable: true, get: function () { return nconf_1.Provider; } });
29
30
  // log config file usages
30
31
  function logConfigFile(configFile, logger) {
31
32
  let message;
@@ -46,7 +47,7 @@ function logConfigFile(configFile, logger) {
46
47
  // read the layered configurations and merge into one
47
48
  function createServiceConfig(baseDir, opts = {}) {
48
49
  var _a;
49
- const nconfInstance = new nconf.Provider();
50
+ const nconfInstance = new nconf_1.Provider();
50
51
  const logger = opts.logger;
51
52
  // static data from runtime
52
53
  const STAGE_VAR = (_a = opts.stageVar) !== null && _a !== void 0 ? _a : 'NODE_ENV';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restorecommerce/service-config",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "An opinionated wrapper of nconf optimized for microservices",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "configuration"
17
17
  ],
18
18
  "dependencies": {
19
- "@restorecommerce/logger": "^1.2.5",
19
+ "@restorecommerce/logger": "^1.2.7",
20
20
  "nconf": "^0.12.0"
21
21
  },
22
22
  "devDependencies": {
@@ -52,5 +52,5 @@
52
52
  }
53
53
  }
54
54
  },
55
- "gitHead": "27981b4fcc96453a1bff4e491f0f053f92118da8"
55
+ "gitHead": "b01ac5d2fee8ed3b9ba7683f7aabdddc11295f15"
56
56
  }