@wener/utils 1.1.30 → 1.1.32
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/crypto/getRandomValues.js +1 -1
- package/lib/schema/typebox/gen/codegen/common/index.js +2 -2
- package/lib/schema/typebox/gen/codegen/expression/index.js +3 -3
- package/lib/schema/typebox/gen/codegen/index.js +2 -2
- package/lib/schema/typebox/gen/codegen/model/index.js +13 -13
- package/lib/schema/typebox/gen/codegen/model/model-to-arktype.js +1 -1
- package/lib/schema/typebox/gen/codegen/model/model-to-expression.js +2 -2
- package/lib/schema/typebox/gen/codegen/model/model-to-grpc.js +1 -1
- package/lib/schema/typebox/gen/codegen/model/model-to-io-ts.js +2 -2
- package/lib/schema/typebox/gen/codegen/model/model-to-json-schema.js +1 -1
- package/lib/schema/typebox/gen/codegen/model/model-to-typescript.js +1 -1
- package/lib/schema/typebox/gen/codegen/model/model-to-valibot.js +2 -2
- package/lib/schema/typebox/gen/codegen/model/model-to-yrel.js +1 -1
- package/lib/schema/typebox/gen/codegen/model/model-to-yup.js +2 -2
- package/lib/schema/typebox/gen/codegen/model/model-to-zod.js +2 -2
- package/lib/schema/typebox/gen/codegen/typescript/index.js +1 -1
- package/lib/schema/typebox/gen/codegen/typescript/typescript-to-model.js +1 -1
- package/lib/schema/typebox/gen/codegen/typescript/typescript-to-typebox.js +1 -1
- package/package.json +2 -1
- package/schema/typebox/gen/index.ts +1 -0
- package/schema/typebox/index.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getGlobalThis } from '../isomorphics/getGlobalThis.js';
|
|
2
|
-
import { getNodeCrypto } from './getNodeCrypto';
|
|
2
|
+
import { getNodeCrypto } from './getNodeCrypto.js';
|
|
3
3
|
const globalThis = getGlobalThis();
|
|
4
4
|
export let getRandomValues = globalThis.crypto?.getRandomValues?.bind(globalThis.crypto) || globalThis.msCrypto?.getRandomValues?.bind(globalThis.msCrypto) || _getRandomValues;
|
|
5
5
|
function _getRandomValues(buf) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export * from './model-to-arktype.js';
|
|
2
|
-
export * from './model-to-expression';
|
|
3
|
-
export * from './model-to-grpc';
|
|
4
|
-
export * from './model-to-io-ts';
|
|
5
|
-
export * from './model-to-javascript';
|
|
6
|
-
export * from './model-to-json-schema';
|
|
7
|
-
export * from './model-to-typebox';
|
|
8
|
-
export * from './model-to-typescript';
|
|
9
|
-
export * from './model-to-valibot';
|
|
10
|
-
export * from './model-to-value';
|
|
11
|
-
export * from './model-to-yrel';
|
|
12
|
-
export * from './model-to-yup';
|
|
13
|
-
export * from './model-to-zod';
|
|
14
|
-
export * from './model';
|
|
2
|
+
export * from './model-to-expression.js';
|
|
3
|
+
export * from './model-to-grpc.js';
|
|
4
|
+
export * from './model-to-io-ts.js';
|
|
5
|
+
export * from './model-to-javascript.js';
|
|
6
|
+
export * from './model-to-json-schema.js';
|
|
7
|
+
export * from './model-to-typebox.js';
|
|
8
|
+
export * from './model-to-typescript.js';
|
|
9
|
+
export * from './model-to-valibot.js';
|
|
10
|
+
export * from './model-to-value.js';
|
|
11
|
+
export * from './model-to-yrel.js';
|
|
12
|
+
export * from './model-to-yup.js';
|
|
13
|
+
export * from './model-to-zod.js';
|
|
14
|
+
export * from './model.js';
|
|
15
15
|
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Types from '@sinclair/typebox';
|
|
2
|
-
import { Formatter, PropertyEncoder } from '../common/index';
|
|
2
|
+
import { Formatter, PropertyEncoder } from '../common/index.js';
|
|
3
3
|
// --------------------------------------------------------------------------
|
|
4
4
|
// ModelToArkType
|
|
5
5
|
// --------------------------------------------------------------------------
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Types from '@sinclair/typebox';
|
|
2
2
|
import { TypeSystemPolicy } from '@sinclair/typebox/system';
|
|
3
|
-
import { Formatter } from '../common/formatter';
|
|
4
|
-
import { Expression } from '../expression/index';
|
|
3
|
+
import { Formatter } from '../common/formatter.js';
|
|
4
|
+
import { Expression } from '../expression/index.js';
|
|
5
5
|
export class TypeTransformUnknownSchemaError extends Error {
|
|
6
6
|
schema;
|
|
7
7
|
constructor(schema){
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Types from '@sinclair/typebox';
|
|
2
|
-
import { Formatter, PropertyEncoder } from '../common/index';
|
|
2
|
+
import { Formatter, PropertyEncoder } from '../common/index.js';
|
|
3
3
|
// --------------------------------------------------------------------------
|
|
4
4
|
// ModelToProtoBuf
|
|
5
5
|
// --------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Types from '@sinclair/typebox';
|
|
2
|
-
import { Formatter, PropertyEncoder } from '../common/index';
|
|
3
|
-
import { ModelToTypeScript } from './model-to-typescript';
|
|
2
|
+
import { Formatter, PropertyEncoder } from '../common/index.js';
|
|
3
|
+
import { ModelToTypeScript } from './model-to-typescript.js';
|
|
4
4
|
// --------------------------------------------------------------------------
|
|
5
5
|
// ModelToIoTs
|
|
6
6
|
// --------------------------------------------------------------------------
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Types from '@sinclair/typebox';
|
|
2
|
-
import { Formatter } from '../common/index';
|
|
2
|
+
import { Formatter } from '../common/index.js';
|
|
3
3
|
// --------------------------------------------------------------------------
|
|
4
4
|
// ModelToJsonSchema
|
|
5
5
|
// --------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Types from '@sinclair/typebox';
|
|
2
2
|
import { TypeCompiler } from '@sinclair/typebox/compiler';
|
|
3
|
-
import { Formatter } from '../common/formatter';
|
|
3
|
+
import { Formatter } from '../common/formatter.js';
|
|
4
4
|
export var ModelToTypeScript;
|
|
5
5
|
(function(ModelToTypeScript) {
|
|
6
6
|
function Any(schema) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Types from '@sinclair/typebox';
|
|
2
|
-
import { Formatter, PropertyEncoder } from '../common/index';
|
|
3
|
-
import { ModelToTypeScript } from './model-to-typescript';
|
|
2
|
+
import { Formatter, PropertyEncoder } from '../common/index.js';
|
|
3
|
+
import { ModelToTypeScript } from './model-to-typescript.js';
|
|
4
4
|
// --------------------------------------------------------------------------
|
|
5
5
|
// ModelToValibot
|
|
6
6
|
// --------------------------------------------------------------------------
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Types from '@sinclair/typebox';
|
|
2
|
-
import { Formatter, PropertyEncoder } from '../common/index';
|
|
2
|
+
import { Formatter, PropertyEncoder } from '../common/index.js';
|
|
3
3
|
// --------------------------------------------------------------------------
|
|
4
4
|
// ModelToYrel
|
|
5
5
|
// --------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Types from '@sinclair/typebox';
|
|
2
|
-
import { Formatter, PropertyEncoder } from '../common/index';
|
|
3
|
-
import { ModelToTypeScript } from './model-to-typescript';
|
|
2
|
+
import { Formatter, PropertyEncoder } from '../common/index.js';
|
|
3
|
+
import { ModelToTypeScript } from './model-to-typescript.js';
|
|
4
4
|
// --------------------------------------------------------------------------
|
|
5
5
|
// ModelToYup
|
|
6
6
|
// --------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Types from '@sinclair/typebox';
|
|
2
|
-
import { Formatter, PropertyEncoder } from '../common/index';
|
|
3
|
-
import { ModelToTypeScript } from './model-to-typescript';
|
|
2
|
+
import { Formatter, PropertyEncoder } from '../common/index.js';
|
|
3
|
+
import { ModelToTypeScript } from './model-to-typescript.js';
|
|
4
4
|
// --------------------------------------------------------------------------
|
|
5
5
|
// ModelToZod
|
|
6
6
|
// --------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Type, Kind, CloneType } from '@sinclair/typebox';
|
|
2
2
|
import * as ts from 'typescript';
|
|
3
|
-
import { TypeScriptToTypeBox } from './typescript-to-typebox';
|
|
3
|
+
import { TypeScriptToTypeBox } from './typescript-to-typebox.js';
|
|
4
4
|
export var TypeScriptToModel;
|
|
5
5
|
(function(TypeScriptToModel) {
|
|
6
6
|
const compilerOptions = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wener/utils",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Utils for daily use",
|
|
6
6
|
"repository": {
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"index.ts",
|
|
16
16
|
"lib",
|
|
17
17
|
"server",
|
|
18
|
+
"schema",
|
|
18
19
|
"server.ts",
|
|
19
20
|
"src",
|
|
20
21
|
"tsconfig.json",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../../src/schema/typebox/gen';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../src/schema/typebox';
|