@vnodes/types 0.1.1 → 0.1.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/README.md +3 -3
- package/dist/index.d.ts +3 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -14
- package/dist/index.js.map +1 -1
- package/dist/lib/common.d.ts +24 -0
- package/dist/lib/common.d.ts.map +1 -0
- package/dist/lib/common.js +3 -0
- package/dist/lib/common.js.map +1 -0
- package/dist/{names → lib}/names.d.ts +1 -2
- package/dist/lib/names.d.ts.map +1 -0
- package/dist/lib/names.js.map +1 -0
- package/dist/lib/types.d.ts +2 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +5 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/package.json +65 -0
- package/package.json +39 -32
- package/assets/favicon.png +0 -0
- package/bin/version.mjs +0 -12
- package/dist/auth/access-token-payload.d.ts +0 -5
- package/dist/auth/access-token-payload.d.ts.map +0 -1
- package/dist/auth/access-token-payload.js +0 -3
- package/dist/auth/access-token-payload.js.map +0 -1
- package/dist/auth/user-credential.d.ts +0 -5
- package/dist/auth/user-credential.d.ts.map +0 -1
- package/dist/auth/user-credential.js +0 -3
- package/dist/auth/user-credential.js.map +0 -1
- package/dist/common/any.d.ts +0 -6
- package/dist/common/any.d.ts.map +0 -1
- package/dist/common/any.js +0 -5
- package/dist/common/any.js.map +0 -1
- package/dist/common/either.d.ts +0 -6
- package/dist/common/either.d.ts.map +0 -1
- package/dist/common/either.js +0 -3
- package/dist/common/either.js.map +0 -1
- package/dist/common/filter-fn.d.ts +0 -2
- package/dist/common/filter-fn.d.ts.map +0 -1
- package/dist/common/filter-fn.js +0 -3
- package/dist/common/filter-fn.js.map +0 -1
- package/dist/common/keys.d.ts +0 -2
- package/dist/common/keys.d.ts.map +0 -1
- package/dist/common/keys.js +0 -3
- package/dist/common/keys.js.map +0 -1
- package/dist/common/record.d.ts +0 -5
- package/dist/common/record.d.ts.map +0 -1
- package/dist/common/record.js +0 -3
- package/dist/common/record.js.map +0 -1
- package/dist/common/some.d.ts +0 -2
- package/dist/common/some.d.ts.map +0 -1
- package/dist/common/some.js +0 -3
- package/dist/common/some.js.map +0 -1
- package/dist/common/type.d.ts +0 -5
- package/dist/common/type.d.ts.map +0 -1
- package/dist/common/type.js +0 -3
- package/dist/common/type.js.map +0 -1
- package/dist/dev/package-json.d.ts +0 -45
- package/dist/dev/package-json.d.ts.map +0 -1
- package/dist/dev/package-json.js +0 -5
- package/dist/dev/package-json.js.map +0 -1
- package/dist/input/error-message.d.ts +0 -18
- package/dist/input/error-message.d.ts.map +0 -1
- package/dist/input/error-message.js +0 -3
- package/dist/input/error-message.js.map +0 -1
- package/dist/names/names.d.ts.map +0 -1
- package/dist/names/names.js.map +0 -1
- package/dist/ts/ts-scalar-types.d.ts +0 -2
- package/dist/ts/ts-scalar-types.d.ts.map +0 -1
- package/dist/ts/ts-scalar-types.js +0 -3
- package/dist/ts/ts-scalar-types.js.map +0 -1
- /package/dist/{names → lib}/names.js +0 -0
package/README.md
CHANGED
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
## @vnodes/types
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Shared types
|
|
14
14
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
pnpm add @vnodes/types
|
|
18
|
+
pnpm add -D @vnodes/types
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## 💖 Support My Work
|
|
@@ -29,7 +29,7 @@ If you find my open-source contributions or the **@vnodes/types** project helpfu
|
|
|
29
29
|
## 🤝 Connect with Me
|
|
30
30
|
|
|
31
31
|
<p align="left">
|
|
32
|
-
<a href="mailto:robert.brightline+vnodes-
|
|
32
|
+
<a href="mailto:robert.brightline+vnodes-nestjs@gmail.com">
|
|
33
33
|
<img src="https://img.shields.io/badge/Email-D14836?style=for-the-badge&logo=gmail&logoColor=white" />
|
|
34
34
|
</a>
|
|
35
35
|
</p>
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './common/either.js';
|
|
5
|
-
export * from './common/filter-fn.js';
|
|
6
|
-
export * from './common/keys.js';
|
|
7
|
-
export * from './common/record.js';
|
|
8
|
-
export * from './common/some.js';
|
|
9
|
-
export * from './common/type.js';
|
|
10
|
-
export * from './dev/package-json.js';
|
|
11
|
-
export * from './input/error-message.js';
|
|
12
|
-
export * from './names/names.js';
|
|
13
|
-
export * from './ts/ts-scalar-types.js';
|
|
1
|
+
export * from './lib/common.js';
|
|
2
|
+
export * from './lib/names.js';
|
|
3
|
+
export * from './lib/types.js';
|
|
14
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
// @index(['./**/*.ts', '!./**/*.
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './common/either.js';
|
|
6
|
-
export * from './common/filter-fn.js';
|
|
7
|
-
export * from './common/keys.js';
|
|
8
|
-
export * from './common/record.js';
|
|
9
|
-
export * from './common/some.js';
|
|
10
|
-
export * from './common/type.js';
|
|
11
|
-
export * from './dev/package-json.js';
|
|
12
|
-
export * from './input/error-message.js';
|
|
13
|
-
export * from './names/names.js';
|
|
14
|
-
export * from './ts/ts-scalar-types.js';
|
|
1
|
+
// @index(['./**/*.ts', '!./**/*.spec.ts'], f => `export * from '${f.path}.js'`)
|
|
2
|
+
export * from './lib/common.js';
|
|
3
|
+
export * from './lib/names.js';
|
|
4
|
+
export * from './lib/types.js';
|
|
15
5
|
|
|
16
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.spec.ts'], f => `export * from '${f.path}.js'`)\nexport * from './lib/common.js';\nexport * from './lib/names.js';\nexport * from './lib/types.js';\n"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,cAAc,kBAAkB;AAChC,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type KeyOf<T> = keyof T;
|
|
2
|
+
/**
|
|
3
|
+
* Array<KeyOf<T>>
|
|
4
|
+
*/
|
|
5
|
+
export type Keys<T> = Array<KeyOf<T>>;
|
|
6
|
+
/**
|
|
7
|
+
* Defined or undefined: `T | undefined`
|
|
8
|
+
*/
|
|
9
|
+
export type Some<T> = T | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Defined or null: `T | null;`
|
|
12
|
+
*/
|
|
13
|
+
export type Nullable<T> = T | null;
|
|
14
|
+
/**
|
|
15
|
+
* Defined, undefined, or null: `T | undefined | null;`
|
|
16
|
+
*/
|
|
17
|
+
export type Optional<T> = T | undefined | null;
|
|
18
|
+
export type Obj = object;
|
|
19
|
+
export type CustomRecord<T extends Obj, V> = Record<KeyOf<T>, V>;
|
|
20
|
+
export type StringRecord<T extends Obj> = CustomRecord<T, string>;
|
|
21
|
+
export type NumberRecord<T extends Obj> = CustomRecord<T, number>;
|
|
22
|
+
export type BooleanRecord<T extends Obj> = CustomRecord<T, boolean>;
|
|
23
|
+
export type Any = any;
|
|
24
|
+
//# sourceMappingURL=common.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/lib/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC;AAE/C,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AAEzB,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,GAAG,EAAE,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAEjE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAElE,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAElE,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,GAAG,IAAI,YAAY,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAEpE,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/common.ts"],"sourcesContent":["export type KeyOf<T> = keyof T;\n\n/**\n * Array<KeyOf<T>>\n */\nexport type Keys<T> = Array<KeyOf<T>>;\n\n/**\n * Defined or undefined: `T | undefined`\n */\nexport type Some<T> = T | undefined;\n\n/**\n * Defined or null: `T | null;`\n */\nexport type Nullable<T> = T | null;\n\n/**\n * Defined, undefined, or null: `T | undefined | null;`\n */\nexport type Optional<T> = T | undefined | null;\n\nexport type Obj = object;\n\nexport type CustomRecord<T extends Obj, V> = Record<KeyOf<T>, V>;\n\nexport type StringRecord<T extends Obj> = CustomRecord<T, string>;\n\nexport type NumberRecord<T extends Obj> = CustomRecord<T, number>;\n\nexport type BooleanRecord<T extends Obj> = CustomRecord<T, boolean>;\n\nexport type Any = any;\n"],"names":[],"mappings":"AAgCA,WAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../src/lib/names.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/names.ts"],"sourcesContent":["export type Names = {\n pascal: string;\n camel: string;\n kebab: string;\n snake: string;\n constant: string;\n title: string;\n sentence: string;\n};\n"],"names":[],"mappings":"AAAA,WAQE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA,wBAAgB,KAAK,IAAI,MAAM,CAE9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/lib/types.ts"],"sourcesContent":["export function types(): string {\n return 'types';\n}\n"],"names":["types"],"mappings":"AAAA,OAAO,SAASA;IACd,OAAO;AACT"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vnodes/types",
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"author": {
|
|
6
|
+
"email": "robert.brightline+vnodes-types@gmail.com",
|
|
7
|
+
"name": "Robert Brightline",
|
|
8
|
+
"url": "https://vnodes.github.io/profile/robert-brightline"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"library",
|
|
12
|
+
"types"
|
|
13
|
+
],
|
|
14
|
+
"bugs": {
|
|
15
|
+
"email": "robert.brightline+vnodes-types-bug@gmail.com",
|
|
16
|
+
"url": "https://github.com/vnodes/vnodes/issues"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://vnodes.github.io/packages/types",
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"tag": "latest"
|
|
22
|
+
},
|
|
23
|
+
"funding": [
|
|
24
|
+
"https://cash.app/$puqlib"
|
|
25
|
+
],
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"assets"
|
|
29
|
+
],
|
|
30
|
+
"main": "./dist/index.js",
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"module": "./dist/index.js",
|
|
33
|
+
"exports": {
|
|
34
|
+
"./package.json": "./package.json",
|
|
35
|
+
".": {
|
|
36
|
+
"types": "./dist/index.d.ts",
|
|
37
|
+
"import": "./dist/index.js",
|
|
38
|
+
"default": "./dist/index.js"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"nx": {
|
|
42
|
+
"sourceRoot": "packages/types/src",
|
|
43
|
+
"tags": [
|
|
44
|
+
"lib:types"
|
|
45
|
+
],
|
|
46
|
+
"targets": {
|
|
47
|
+
"build": {
|
|
48
|
+
"executor": "@nx/js:swc",
|
|
49
|
+
"outputs": [
|
|
50
|
+
"{options.outputPath}"
|
|
51
|
+
],
|
|
52
|
+
"options": {
|
|
53
|
+
"outputPath": "packages/types/dist",
|
|
54
|
+
"main": "packages/types/src/index.ts",
|
|
55
|
+
"tsConfig": "packages/types/tsconfig.lib.json",
|
|
56
|
+
"skipTypeCheck": false,
|
|
57
|
+
"stripLeadingPaths": true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"dependencies": {
|
|
63
|
+
"@swc/helpers": "~0.5.18"
|
|
64
|
+
}
|
|
65
|
+
}
|
package/package.json
CHANGED
|
@@ -1,58 +1,65 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vnodes/types",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.1.3",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"author": {
|
|
6
|
+
"email": "robert.brightline+vnodes-types@gmail.com",
|
|
7
|
+
"name": "Robert Brightline",
|
|
8
|
+
"url": "https://vnodes.github.io/profile/robert-brightline"
|
|
9
|
+
},
|
|
5
10
|
"keywords": [
|
|
11
|
+
"library",
|
|
6
12
|
"types"
|
|
7
13
|
],
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
14
|
+
"bugs": {
|
|
15
|
+
"email": "robert.brightline+vnodes-types-bug@gmail.com",
|
|
16
|
+
"url": "https://github.com/vnodes/vnodes/issues"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://vnodes.github.io/packages/types",
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"tag": "latest"
|
|
12
22
|
},
|
|
13
|
-
"homepage": "https://vnodes.github.io/vnodes/libs/types",
|
|
14
|
-
"icon": "https://vnodes.github.io/vnodes/libs/types/assets/favicon.png",
|
|
15
23
|
"funding": [
|
|
16
24
|
"https://cash.app/$puqlib"
|
|
17
25
|
],
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"assets"
|
|
29
|
+
],
|
|
22
30
|
"main": "./dist/index.js",
|
|
23
|
-
"module": "./dist/index.js",
|
|
24
31
|
"types": "./dist/index.d.ts",
|
|
32
|
+
"module": "./dist/index.js",
|
|
25
33
|
"exports": {
|
|
26
34
|
"./package.json": "./package.json",
|
|
27
35
|
".": {
|
|
28
|
-
"@vnodes/source": "./src/index.ts",
|
|
29
36
|
"types": "./dist/index.d.ts",
|
|
30
37
|
"import": "./dist/index.js",
|
|
31
38
|
"default": "./dist/index.js"
|
|
32
39
|
}
|
|
33
40
|
},
|
|
34
|
-
"files": [
|
|
35
|
-
"dist",
|
|
36
|
-
"bin",
|
|
37
|
-
"!**/*.tsbuildinfo",
|
|
38
|
-
"assets"
|
|
39
|
-
],
|
|
40
41
|
"nx": {
|
|
41
|
-
"sourceRoot": "
|
|
42
|
-
"targets": {
|
|
43
|
-
"build": {},
|
|
44
|
-
"doc": {},
|
|
45
|
-
"lint": {}
|
|
46
|
-
},
|
|
42
|
+
"sourceRoot": "packages/types/src",
|
|
47
43
|
"tags": [
|
|
48
|
-
"lib"
|
|
49
|
-
]
|
|
44
|
+
"lib:types"
|
|
45
|
+
],
|
|
46
|
+
"targets": {
|
|
47
|
+
"build": {
|
|
48
|
+
"executor": "@nx/js:swc",
|
|
49
|
+
"outputs": [
|
|
50
|
+
"{options.outputPath}"
|
|
51
|
+
],
|
|
52
|
+
"options": {
|
|
53
|
+
"outputPath": "packages/types/dist",
|
|
54
|
+
"main": "packages/types/src/index.ts",
|
|
55
|
+
"tsConfig": "packages/types/tsconfig.lib.json",
|
|
56
|
+
"skipTypeCheck": false,
|
|
57
|
+
"stripLeadingPaths": true
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
50
61
|
},
|
|
51
62
|
"dependencies": {
|
|
52
63
|
"@swc/helpers": "~0.5.18"
|
|
53
|
-
},
|
|
54
|
-
"publishConfig": {
|
|
55
|
-
"access": "public",
|
|
56
|
-
"tag": "latest"
|
|
57
64
|
}
|
|
58
65
|
}
|
package/assets/favicon.png
DELETED
|
Binary file
|
package/bin/version.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
import { readFileSync } from 'node:fs';
|
|
4
|
-
import { dirname, join } from 'node:path';
|
|
5
|
-
import { fileURLToPath } from 'node:url';
|
|
6
|
-
|
|
7
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
8
|
-
const __dirname = dirname(__filename);
|
|
9
|
-
const packageJsonPath = join(__dirname, '..', 'package.json');
|
|
10
|
-
const packageJson = readFileSync(packageJsonPath, { encoding: 'utf-8' });
|
|
11
|
-
const version = JSON.parse(packageJson).version;
|
|
12
|
-
console.log(version);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"access-token-payload.d.ts","sourceRoot":"","sources":["../../src/auth/access-token-payload.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/auth/access-token-payload.ts"],"sourcesContent":["export type AccessTokenPayload = {\n sub: number;\n version: string;\n};\n"],"names":[],"mappings":"AAAA,WAGE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-credential.d.ts","sourceRoot":"","sources":["../../src/auth/user-credential.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/auth/user-credential.ts"],"sourcesContent":["export type UserCredential = {\n username: string;\n password: string;\n};\n"],"names":[],"mappings":"AAAA,WAGE"}
|
package/dist/common/any.d.ts
DELETED
package/dist/common/any.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"any.d.ts","sourceRoot":"","sources":["../../src/common/any.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAE1D;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC"}
|
package/dist/common/any.js
DELETED
package/dist/common/any.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/any.ts"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noExplicitAny: Any */\n\n/**\n * Any types\n */\nexport type Any = any;\n"],"names":[],"mappings":"AAAA,wDAAwD,GAExD;;CAEC,GACD,WAAsB"}
|
package/dist/common/either.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"either.d.ts","sourceRoot":"","sources":["../../src/common/either.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI;KACnB,CAAC,IAAI,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;SACxB,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK;KACrC;CACJ,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
package/dist/common/either.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/either.ts"],"sourcesContent":["export type Either<T> = {\n [K in keyof T]: Pick<T, K> & {\n [P in Exclude<keyof T, K>]?: never;\n };\n}[keyof T];\n"],"names":[],"mappings":"AAAA,WAIW"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"filter-fn.d.ts","sourceRoot":"","sources":["../../src/common/filter-fn.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,EAAE,KAAK,OAAO,CAAC"}
|
package/dist/common/filter-fn.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/filter-fn.ts"],"sourcesContent":["export type FilterFn<T> = (value: T, index?: number, data?: T[]) => boolean;\n"],"names":[],"mappings":"AAAA,WAA4E"}
|
package/dist/common/keys.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../../src/common/keys.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC"}
|
package/dist/common/keys.js
DELETED
package/dist/common/keys.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/keys.ts"],"sourcesContent":["export type Keys<T> = Array<keyof T>;\n"],"names":[],"mappings":"AAAA,WAAqC"}
|
package/dist/common/record.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/common/record.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;AACnD,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AACrD,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AACrD,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"}
|
package/dist/common/record.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/record.ts"],"sourcesContent":["export type TypedRecord<T, V> = Record<keyof T, V>;\nexport type StringRecord<T> = TypedRecord<T, string>;\nexport type NumberRecord<T> = TypedRecord<T, number>;\nexport type BooleanRecord<T> = TypedRecord<T, boolean>;\n"],"names":[],"mappings":"AAGA,WAAuD"}
|
package/dist/common/some.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"some.d.ts","sourceRoot":"","sources":["../../src/common/some.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC"}
|
package/dist/common/some.js
DELETED
package/dist/common/some.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/some.ts"],"sourcesContent":["export type Some<T> = T | undefined | null;\n"],"names":[],"mappings":"AAAA,WAA2C"}
|
package/dist/common/type.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/common/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI;IAClB,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC"}
|
package/dist/common/type.js
DELETED
package/dist/common/type.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/common/type.ts"],"sourcesContent":["import type { Any } from './any.js';\n\nexport type Type<T> = {\n new (...args: Any[]): T;\n};\n"],"names":[],"mappings":"AAEA,WAEE"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import type { Any } from '../common/any.js';
|
|
2
|
-
/**
|
|
3
|
-
* A type-safe representation of a standard package.json file.
|
|
4
|
-
*/
|
|
5
|
-
export type PackageJson = {
|
|
6
|
-
name: string;
|
|
7
|
-
version: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
main?: string;
|
|
10
|
-
module?: string;
|
|
11
|
-
types?: string;
|
|
12
|
-
typings?: string;
|
|
13
|
-
bin?: string | Record<string, string>;
|
|
14
|
-
scripts?: Record<string, string>;
|
|
15
|
-
dependencies?: Record<string, string>;
|
|
16
|
-
devDependencies?: Record<string, string>;
|
|
17
|
-
peerDependencies?: Record<string, string>;
|
|
18
|
-
optionalDependencies?: Record<string, string>;
|
|
19
|
-
funding?: string[];
|
|
20
|
-
engines?: {
|
|
21
|
-
node?: string;
|
|
22
|
-
npm?: string;
|
|
23
|
-
[key: string]: string | undefined;
|
|
24
|
-
};
|
|
25
|
-
repository?: string | {
|
|
26
|
-
type: string;
|
|
27
|
-
url: string;
|
|
28
|
-
directory?: string;
|
|
29
|
-
};
|
|
30
|
-
keywords?: string[];
|
|
31
|
-
author?: string | {
|
|
32
|
-
name: string;
|
|
33
|
-
email?: string;
|
|
34
|
-
url?: string;
|
|
35
|
-
};
|
|
36
|
-
license?: string;
|
|
37
|
-
bugs?: string | {
|
|
38
|
-
url?: string;
|
|
39
|
-
email?: string;
|
|
40
|
-
};
|
|
41
|
-
homepage?: string;
|
|
42
|
-
icon?: string;
|
|
43
|
-
[customTool: string]: Any;
|
|
44
|
-
};
|
|
45
|
-
//# sourceMappingURL=package-json.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/dev/package-json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,CAAC,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KACrC,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxE,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG;QAAE,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAAC;CAC7B,CAAC"}
|
package/dist/dev/package-json.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/dev/package-json.ts"],"sourcesContent":["import type { Any } from '../common/any.js';\n\n/**\n * A type-safe representation of a standard package.json file.\n */\nexport type PackageJson = {\n name: string;\n version: string;\n description?: string;\n main?: string;\n module?: string;\n types?: string;\n typings?: string;\n bin?: string | Record<string, string>;\n scripts?: Record<string, string>;\n dependencies?: Record<string, string>;\n devDependencies?: Record<string, string>;\n peerDependencies?: Record<string, string>;\n optionalDependencies?: Record<string, string>;\n funding?: string[];\n engines?: {\n node?: string;\n npm?: string;\n [key: string]: string | undefined;\n };\n repository?: string | { type: string; url: string; directory?: string };\n keywords?: string[];\n author?: string | { name: string; email?: string; url?: string };\n license?: string;\n bugs?: string | { url?: string; email?: string };\n homepage?: string;\n icon?: string;\n [customTool: string]: Any;\n};\n"],"names":[],"mappings":"AAEA;;CAEC,GACD,WA4BE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Any } from '../common/any.js';
|
|
2
|
-
export type ConstraintValue = string | number | boolean;
|
|
3
|
-
export type Constraints = {
|
|
4
|
-
required: boolean;
|
|
5
|
-
minlength: number;
|
|
6
|
-
maxlength: number;
|
|
7
|
-
min: number;
|
|
8
|
-
max: number;
|
|
9
|
-
positive: boolean;
|
|
10
|
-
percent: boolean;
|
|
11
|
-
fraction: boolean;
|
|
12
|
-
email: boolean;
|
|
13
|
-
password: boolean;
|
|
14
|
-
uuid: boolean;
|
|
15
|
-
ean: boolean;
|
|
16
|
-
};
|
|
17
|
-
export type ErrorMessageResolver = (value: Any, constraint: string, constraintValues: Constraints) => string;
|
|
18
|
-
//# sourceMappingURL=error-message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error-message.d.ts","sourceRoot":"","sources":["../../src/input/error-message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AACxD,MAAM,MAAM,WAAW,GAAG;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,OAAO,CAAC;IACd,GAAG,EAAE,OAAO,CAAC;CAChB,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,EAAE,WAAW,KAAK,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/input/error-message.ts"],"sourcesContent":["import type { Any } from '../common/any.js';\n\nexport type ConstraintValue = string | number | boolean;\nexport type Constraints = {\n required: boolean;\n minlength: number;\n maxlength: number;\n min: number;\n max: number;\n positive: boolean;\n percent: boolean;\n fraction: boolean;\n email: boolean;\n password: boolean;\n uuid: boolean;\n ean: boolean;\n};\nexport type ErrorMessageResolver = (value: Any, constraint: string, constraintValues: Constraints) => string;\n"],"names":[],"mappings":"AAiBA,WAA6G"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"names.d.ts","sourceRoot":"","sources":["../../src/names/names.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACf,CAAC"}
|
package/dist/names/names.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/names/names.ts"],"sourcesContent":["export type Names = {\n camel: string;\n pascal: string;\n kebab: string;\n snake: string;\n constant: string;\n title: string;\n sentence: string;\n dot: string;\n};\n"],"names":[],"mappings":"AAAA,WASE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ts-scalar-types.d.ts","sourceRoot":"","sources":["../../src/ts/ts-scalar-types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/ts/ts-scalar-types.ts"],"sourcesContent":["export type TSScalarTypes = 'string' | 'number' | 'boolean' | 'Date' | 'BigInt';\n"],"names":[],"mappings":"AAAA,WAAgF"}
|
|
File without changes
|