@jdsalasc/solvejs-constants 1.0.0
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 +3 -0
- package/dist/cjs/index.cjs +21 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/index.d.ts +17 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -0
- package/package.json +33 -0
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BOOLEAN_STRINGS = exports.COMMON_DELIMITERS = exports.TIME = void 0;
|
|
4
|
+
exports.TIME = {
|
|
5
|
+
SECOND_MS: 1000,
|
|
6
|
+
MINUTE_MS: 60000,
|
|
7
|
+
HOUR_MS: 3600000,
|
|
8
|
+
DAY_MS: 86400000
|
|
9
|
+
};
|
|
10
|
+
exports.COMMON_DELIMITERS = {
|
|
11
|
+
COMMA: ",",
|
|
12
|
+
DOT: ".",
|
|
13
|
+
DASH: "-",
|
|
14
|
+
UNDERSCORE: "_",
|
|
15
|
+
SLASH: "/"
|
|
16
|
+
};
|
|
17
|
+
exports.BOOLEAN_STRINGS = {
|
|
18
|
+
TRUE_VALUES: ["true", "1", "yes", "on"],
|
|
19
|
+
FALSE_VALUES: ["false", "0", "no", "off"]
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,IAAI,GAAG;IAClB,SAAS,EAAE,IAAK;IAChB,SAAS,EAAE,KAAM;IACjB,OAAO,EAAE,OAAS;IAClB,MAAM,EAAE,QAAU;CACV,CAAC;AAEE,QAAA,iBAAiB,GAAG;IAC/B,KAAK,EAAE,GAAG;IACV,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,GAAG;IACf,KAAK,EAAE,GAAG;CACF,CAAC;AAEE,QAAA,eAAe,GAAG;IAC7B,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,CAAU;IAChD,YAAY,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAU;CAC1C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const TIME: {
|
|
2
|
+
readonly SECOND_MS: 1000;
|
|
3
|
+
readonly MINUTE_MS: 60000;
|
|
4
|
+
readonly HOUR_MS: 3600000;
|
|
5
|
+
readonly DAY_MS: 86400000;
|
|
6
|
+
};
|
|
7
|
+
export declare const COMMON_DELIMITERS: {
|
|
8
|
+
readonly COMMA: ",";
|
|
9
|
+
readonly DOT: ".";
|
|
10
|
+
readonly DASH: "-";
|
|
11
|
+
readonly UNDERSCORE: "_";
|
|
12
|
+
readonly SLASH: "/";
|
|
13
|
+
};
|
|
14
|
+
export declare const BOOLEAN_STRINGS: {
|
|
15
|
+
readonly TRUE_VALUES: readonly ["true", "1", "yes", "on"];
|
|
16
|
+
readonly FALSE_VALUES: readonly ["false", "0", "no", "off"];
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export const TIME = {
|
|
2
|
+
SECOND_MS: 1000,
|
|
3
|
+
MINUTE_MS: 60000,
|
|
4
|
+
HOUR_MS: 3600000,
|
|
5
|
+
DAY_MS: 86400000
|
|
6
|
+
};
|
|
7
|
+
export const COMMON_DELIMITERS = {
|
|
8
|
+
COMMA: ",",
|
|
9
|
+
DOT: ".",
|
|
10
|
+
DASH: "-",
|
|
11
|
+
UNDERSCORE: "_",
|
|
12
|
+
SLASH: "/"
|
|
13
|
+
};
|
|
14
|
+
export const BOOLEAN_STRINGS = {
|
|
15
|
+
TRUE_VALUES: ["true", "1", "yes", "on"],
|
|
16
|
+
FALSE_VALUES: ["false", "0", "no", "off"]
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,SAAS,EAAE,IAAK;IAChB,SAAS,EAAE,KAAM;IACjB,OAAO,EAAE,OAAS;IAClB,MAAM,EAAE,QAAU;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,KAAK,EAAE,GAAG;IACV,GAAG,EAAE,GAAG;IACR,IAAI,EAAE,GAAG;IACT,UAAU,EAAE,GAAG;IACf,KAAK,EAAE,GAAG;CACF,CAAC;AAEX,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,WAAW,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,CAAU;IAChD,YAAY,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,CAAU;CAC1C,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@jdsalasc/solvejs-constants",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Shared constants for common development use cases.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"main": "./dist/cjs/index.cjs",
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"types": "./dist/esm/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/esm/index.d.ts",
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md"
|
|
21
|
+
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "npm run clean && npm run build:esm && npm run build:cjs",
|
|
24
|
+
"build:esm": "tsc -p tsconfig.esm.json",
|
|
25
|
+
"build:cjs": "tsc -p tsconfig.cjs.json && node ./scripts/rename-cjs.mjs",
|
|
26
|
+
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
27
|
+
"test": "npm run build && node --test test/*.test.mjs",
|
|
28
|
+
"lint": "node -e \"console.log('No lint configured for @jdsalasc/solvejs-constants')\""
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
}
|
|
33
|
+
}
|