Socket
Book a DemoSign in
Socket

@voiceflow/common

Package Overview
Dependencies
Maintainers
27
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voiceflow/common - npm Package Compare versions

Comparing version
8.8.1
to
8.9.0
+1
-1
build/cjs/dtos/date.dto.d.ts
import { z } from 'zod';
export declare const zDateString: () => z.ZodEffects<z.ZodString, Date, string>;
export declare const zDateString: () => z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
//# sourceMappingURL=date.dto.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"date.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/date.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,+CAIkB,CAAC"}
{"version":3,"file":"date.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/date.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,4DAIkB,CAAC"}
import { z } from 'zod';
export declare const zOptionalBooleanString: (defaultValue?: boolean) => z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>]>>>, boolean, string | undefined>;
export declare const zOptionalBooleanString: (defaultValue?: boolean) => z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<string>, z.ZodLiteral<string>]>>>, z.ZodTransform<boolean, string>>;
//# sourceMappingURL=env.dto.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"env.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/env.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,8JAKc,CAAC"}
{"version":3,"file":"env.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/env.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,wKAKc,CAAC"}

@@ -5,3 +5,3 @@ /**

*/
import type { ZodSchema } from 'zod';
import type { ZodType } from 'zod';
import { z } from 'zod';

@@ -12,4 +12,4 @@ type Literal = boolean | number | string;

} | JSON[];
export declare const zJSON: (message?: string) => ZodSchema<JSON, z.ZodTypeDef, JSON>;
export declare const zJSON: (message?: string) => ZodType<JSON, unknown, z.core.$ZodTypeInternals<JSON, unknown>>;
export {};
//# sourceMappingURL=json.dto.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"json.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/json.dto.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,KAAK,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,EAAE,CAAC;AAM9D,eAAO,MAAM,KAAK,aAAa,MAAM,wCAQpC,CAAC"}
{"version":3,"file":"json.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/json.dto.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,KAAK,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,EAAE,CAAC;AAM9D,eAAO,MAAM,KAAK,aAAa,MAAM,oEAMpC,CAAC"}

@@ -12,7 +12,5 @@ "use strict";

const zJSON = (message = DEFAULT_MESSAGE) => {
const schema = zod_1.z.lazy(() => zod_1.z.union([literal, zod_1.z.array(schema), zod_1.z.record(schema)], {
invalid_type_error: message,
}));
const schema = zod_1.z.lazy(() => zod_1.z.union([literal, zod_1.z.array(schema), zod_1.z.record(zod_1.z.string(), schema)], { error: message }));
return schema;
};
exports.zJSON = zJSON;
import { z } from 'zod';
export declare const zDateString: () => z.ZodEffects<z.ZodString, Date, string>;
export declare const zDateString: () => z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
//# sourceMappingURL=date.dto.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"date.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/date.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,+CAIkB,CAAC"}
{"version":3,"file":"date.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/date.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,4DAIkB,CAAC"}
import { z } from 'zod';
export declare const zOptionalBooleanString: (defaultValue?: boolean) => z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>]>>>, boolean, string | undefined>;
export declare const zOptionalBooleanString: (defaultValue?: boolean) => z.ZodPipe<z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<string>, z.ZodLiteral<string>]>>>, z.ZodTransform<boolean, string>>;
//# sourceMappingURL=env.dto.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"env.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/env.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,8JAKc,CAAC"}
{"version":3,"file":"env.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/env.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,wKAKc,CAAC"}

@@ -5,3 +5,3 @@ /**

*/
import type { ZodSchema } from 'zod';
import type { ZodType } from 'zod';
import { z } from 'zod';

@@ -12,4 +12,4 @@ type Literal = boolean | number | string;

} | JSON[];
export declare const zJSON: (message?: string) => ZodSchema<JSON, z.ZodTypeDef, JSON>;
export declare const zJSON: (message?: string) => ZodType<JSON, unknown, z.core.$ZodTypeInternals<JSON, unknown>>;
export {};
//# sourceMappingURL=json.dto.d.ts.map

@@ -1,1 +0,1 @@

{"version":3,"file":"json.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/json.dto.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,KAAK,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,EAAE,CAAC;AAM9D,eAAO,MAAM,KAAK,aAAa,MAAM,wCAQpC,CAAC"}
{"version":3,"file":"json.dto.d.ts","sourceRoot":"","sources":["../../../src/dtos/json.dto.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,KAAK,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AACzC,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,EAAE,CAAC;AAM9D,eAAO,MAAM,KAAK,aAAa,MAAM,oEAMpC,CAAC"}

@@ -9,6 +9,4 @@ /**

export const zJSON = (message = DEFAULT_MESSAGE) => {
const schema = z.lazy(() => z.union([literal, z.array(schema), z.record(schema)], {
invalid_type_error: message,
}));
const schema = z.lazy(() => z.union([literal, z.array(schema), z.record(z.string(), schema)], { error: message }));
return schema;
};
{
"name": "@voiceflow/common",
"version": "8.8.1",
"version": "8.9.0",
"description": "Junk drawer of utility functions",

@@ -75,6 +75,6 @@ "keywords": [

"@types/number-to-words": "1.2.0",
"zod": "3.24.1"
"zod": "4.1.12"
},
"peerDependencies": {
"zod": "^3"
"zod": "^4"
},

@@ -92,3 +92,3 @@ "peerDependenciesMeta": {

},
"gitHead": "ceb842ce57e4902d69275fb4e21624a3b3887873"
"gitHead": "249577031363d019cf797d827a44ab6089e3faa3"
}