@hiennc24/constant 1.0.1 → 1.0.3

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/lib/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import SERVICE_BROKER from "./service.constant.json";
2
+ export default SERVICE_BROKER;
3
+ export type ServiceBrokerConstantType = {
4
+ [key: string]: any;
5
+ };
6
+ export declare const addLocalServices: (services: ServiceBrokerConstantType) => void;
package/lib/index.js ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.addLocalServices = void 0;
7
+ const service_constant_json_1 = __importDefault(require("./service.constant.json"));
8
+ exports.default = service_constant_json_1.default;
9
+ const addLocalServices = (services) => {
10
+ Object.assign(service_constant_json_1.default, services);
11
+ console.log("added local services!");
12
+ };
13
+ exports.addLocalServices = addLocalServices;