@vnodes/types 0.0.37 → 0.1.1

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,4 +1,5 @@
1
+ import type { Any } from './any.js';
1
2
  export type Type<T> = {
2
- new (...args: any[]): T;
3
+ new (...args: Any[]): T;
3
4
  };
4
5
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/common/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,IAAI,CAAC,CAAC,IAAI;IAClB,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;CAC3B,CAAC"}
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"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/type.ts"],"sourcesContent":["export type Type<T> = {\n new (...args: any[]): T;\n};\n"],"names":[],"mappings":"AAAA,WAEE"}
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"}
package/dist/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './common/record.js';
8
8
  export * from './common/some.js';
9
9
  export * from './common/type.js';
10
10
  export * from './dev/package-json.js';
11
+ export * from './input/error-message.js';
11
12
  export * from './names/names.js';
12
13
  export * from './ts/ts-scalar-types.js';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -9,6 +9,7 @@ export * from './common/record.js';
9
9
  export * from './common/some.js';
10
10
  export * from './common/type.js';
11
11
  export * from './dev/package-json.js';
12
+ export * from './input/error-message.js';
12
13
  export * from './names/names.js';
13
14
  export * from './ts/ts-scalar-types.js';
14
15
 
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts'], f => `export * from '${f.path}.js'`)\nexport * from './auth/access-token-payload.js';\nexport * from './auth/user-credential.js';\nexport * from './common/any.js';\nexport * from './common/either.js';\nexport * from './common/filter-fn.js';\nexport * from './common/keys.js';\nexport * from './common/record.js';\nexport * from './common/some.js';\nexport * from './common/type.js';\nexport * from './dev/package-json.js';\nexport * from './names/names.js';\nexport * from './ts/ts-scalar-types.js';\n"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,cAAc,iCAAiC;AAC/C,cAAc,4BAA4B;AAC1C,cAAc,kBAAkB;AAChC,cAAc,qBAAqB;AACnC,cAAc,wBAAwB;AACtC,cAAc,mBAAmB;AACjC,cAAc,qBAAqB;AACnC,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,wBAAwB;AACtC,cAAc,mBAAmB;AACjC,cAAc,0BAA0B"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["// @index(['./**/*.ts', '!./**/*.{spec,test}.ts'], f => `export * from '${f.path}.js'`)\nexport * from './auth/access-token-payload.js';\nexport * from './auth/user-credential.js';\nexport * from './common/any.js';\nexport * from './common/either.js';\nexport * from './common/filter-fn.js';\nexport * from './common/keys.js';\nexport * from './common/record.js';\nexport * from './common/some.js';\nexport * from './common/type.js';\nexport * from './dev/package-json.js';\nexport * from './input/error-message.js';\nexport * from './names/names.js';\nexport * from './ts/ts-scalar-types.js';\n"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,cAAc,iCAAiC;AAC/C,cAAc,4BAA4B;AAC1C,cAAc,kBAAkB;AAChC,cAAc,qBAAqB;AACnC,cAAc,wBAAwB;AACtC,cAAc,mBAAmB;AACjC,cAAc,qBAAqB;AACnC,cAAc,mBAAmB;AACjC,cAAc,mBAAmB;AACjC,cAAc,wBAAwB;AACtC,cAAc,2BAA2B;AACzC,cAAc,mBAAmB;AACjC,cAAc,0BAA0B"}
@@ -0,0 +1,18 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,3 @@
1
+ export { };
2
+
3
+ //# sourceMappingURL=error-message.js.map
@@ -0,0 +1 @@
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vnodes/types",
3
- "version": "0.0.37",
3
+ "version": "0.1.1",
4
4
  "description": "@vnodes/types",
5
5
  "keywords": [
6
6
  "types"