@hiennc24/constant 1.0.17 → 1.0.18

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.
@@ -1,3 +1,6 @@
1
+ export type CollectionsConstantType = {
2
+ [key: string]: string;
3
+ };
1
4
  declare const COLLECTIONS: {
2
5
  MENU_REPOSITORY_NAME: string;
3
6
  MENU_COLLECTION_NAME: string;
package/lib/index.d.ts CHANGED
@@ -1,10 +1,7 @@
1
1
  import SERVICE_BROKER from "./service.constant.json";
2
- import COLLECTIONS from "./collections.constant";
3
- export { SERVICE_BROKER, COLLECTIONS };
2
+ export default SERVICE_BROKER;
4
3
  export type ServiceBrokerConstantType = {
5
4
  [key: string]: any;
6
5
  };
7
- export type CollectionsConstantType = {
8
- [key: string]: string;
9
- };
6
+ export { default as COLLECTIONS, CollectionsConstantType } from './collections.constant';
10
7
  export declare const addLocalServices: (services: ServiceBrokerConstantType) => void;
package/lib/index.js CHANGED
@@ -3,11 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.addLocalServices = exports.COLLECTIONS = exports.SERVICE_BROKER = void 0;
6
+ exports.addLocalServices = exports.COLLECTIONS = void 0;
7
7
  const service_constant_json_1 = __importDefault(require("./service.constant.json"));
8
- exports.SERVICE_BROKER = service_constant_json_1.default;
9
- const collections_constant_1 = __importDefault(require("./collections.constant"));
10
- exports.COLLECTIONS = collections_constant_1.default;
8
+ exports.default = service_constant_json_1.default;
9
+ var collections_constant_1 = require("./collections.constant");
10
+ Object.defineProperty(exports, "COLLECTIONS", { enumerable: true, get: function () { return __importDefault(collections_constant_1).default; } });
11
11
  const addLocalServices = (services) => {
12
12
  Object.assign(service_constant_json_1.default, services);
13
13
  console.log("added local services!");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiennc24/constant",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {