You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@orpc/contract

Package Overview
Dependencies
Maintainers
0
Versions
676
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orpc/contract - npm Package Compare versions

Comparing version

to
0.11.0

1

dist/index.js

@@ -176,2 +176,1 @@ // src/procedure.ts

};
//# sourceMappingURL=index.js.map

@@ -13,2 +13,1 @@ import type { ContractRouter } from './router';

}
//# sourceMappingURL=builder.d.ts.map
export declare const ORPC_HEADER = "x-orpc-transformer";
export declare const ORPC_HEADER_VALUE = "t";
//# sourceMappingURL=constants.d.ts.map

@@ -10,2 +10,1 @@ /** unnoq */

export declare const oc: ContractBuilder;
//# sourceMappingURL=index.d.ts.map

@@ -46,2 +46,1 @@ import type { HTTPMethod, HTTPPath, Schema, SchemaInput, SchemaOutput } from './types';

export declare function isContractProcedure(item: unknown): item is WELL_DEFINED_CONTRACT_PROCEDURE;
//# sourceMappingURL=procedure.d.ts.map

@@ -16,2 +16,1 @@ import type { ContractRouter, HandledContractRouter } from './router';

}
//# sourceMappingURL=router-builder.d.ts.map

@@ -16,2 +16,1 @@ import type { SchemaInput, SchemaOutput } from './types';

};
//# sourceMappingURL=router.d.ts.map

@@ -8,2 +8,1 @@ import type { input, output, ZodType } from 'zod';

export type SchemaOutput<TSchema extends Schema, TFallback = unknown> = TSchema extends undefined ? TFallback : TSchema extends ZodType<any, any, any> ? output<TSchema> : TFallback;
//# sourceMappingURL=types.d.ts.map
import type { HTTPPath } from './types';
export declare function standardizeHTTPPath(path: HTTPPath): HTTPPath;
export declare function prefixHTTPPath(prefix: HTTPPath, path: HTTPPath): HTTPPath;
//# sourceMappingURL=utils.d.ts.map

19

package.json
{
"name": "@orpc/contract",
"type": "module",
"version": "0.10.0",
"author": {
"name": "unnoq",
"email": "contact@unnoq.com",
"url": "https://unnoq.com"
},
"version": "0.11.0",
"license": "MIT",
"homepage": "https://github.com/unnoq/orpc",
"homepage": "https://orpc.unnoq.com",
"repository": {
"type": "git",
"url": "https://github.com/unnoq/orpc.git",
"url": "git+https://github.com/unnoq/orpc.git",
"directory": "packages/contract"

@@ -32,4 +27,4 @@ },

"files": [
"dist",
"src"
"!dist/*.tsbuildinfo",
"dist"
],

@@ -40,6 +35,6 @@ "peerDependencies": {

"dependencies": {
"@orpc/shared": "0.10.0"
"@orpc/shared": "0.11.0"
},
"scripts": {
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
"build": "tsup --clean --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
"build:watch": "pnpm run build --watch",

@@ -46,0 +41,0 @@ "type:check": "tsc -b"