deesse 0.1.6 → 0.1.7
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/dist/config/define.d.ts +3 -0
- package/dist/config/define.js +16 -0
- package/dist/config/index.d.ts +2 -3
- package/dist/config/index.js +15 -13
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConfig = exports.defineConfig = void 0;
|
|
4
|
+
let _config = null;
|
|
5
|
+
const defineConfig = (config) => {
|
|
6
|
+
_config = config;
|
|
7
|
+
return config;
|
|
8
|
+
};
|
|
9
|
+
exports.defineConfig = defineConfig;
|
|
10
|
+
const getConfig = () => {
|
|
11
|
+
if (!_config) {
|
|
12
|
+
throw new Error("Config not defined. Call defineConfig() first.");
|
|
13
|
+
}
|
|
14
|
+
return _config;
|
|
15
|
+
};
|
|
16
|
+
exports.getConfig = getConfig;
|
package/dist/config/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export declare const getConfig: () => Config;
|
|
1
|
+
export * from './define';
|
|
2
|
+
export * from './types';
|
package/dist/config/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
return config;
|
|
8
|
-
};
|
|
9
|
-
exports.defineConfig = defineConfig;
|
|
10
|
-
const getConfig = () => {
|
|
11
|
-
if (!_config) {
|
|
12
|
-
throw new Error("Config not defined. Call defineConfig() first.");
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
13
7
|
}
|
|
14
|
-
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
|
-
exports
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./define"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|