@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.
@@ -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,5 +1,5 @@
1
1
  export * from './encoder.js';
2
- export * from './formatter';
3
- export * from './jsdoc';
2
+ export * from './formatter.js';
3
+ export * from './jsdoc.js';
4
4
 
5
5
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,6 @@
1
1
  export * from './compiler.js';
2
- export * from './errors';
3
- export * from './evaluator';
4
- export * from './expression';
2
+ export * from './errors.js';
3
+ export * from './evaluator.js';
4
+ export * from './expression.js';
5
5
 
6
6
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  export * from './common/index.js';
2
- export * from './model';
3
- export * from './typescript';
2
+ export * from './model/index.js';
3
+ export * from './typescript/index.js';
4
4
 
5
5
  //# sourceMappingURL=index.js.map
@@ -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,4 +1,4 @@
1
1
  export * from './typescript-to-model.js';
2
- export * from './typescript-to-typebox';
2
+ export * from './typescript-to-typebox.js';
3
3
 
4
4
  //# sourceMappingURL=index.js.map
@@ -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 = {
@@ -1,5 +1,5 @@
1
1
  import * as ts from 'typescript';
2
- import { JsDoc } from '../common/jsdoc';
2
+ import { JsDoc } from '../common/jsdoc.js';
3
3
  export class TypeScriptToTypeBoxError extends Error {
4
4
  diagnostics;
5
5
  constructor(diagnostics){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wener/utils",
3
- "version": "1.1.30",
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';