New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@orpc/contract

Package Overview
Dependencies
Maintainers
0
Versions
232
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 0.36.1 to 0.37.0

4

dist/index.js

@@ -164,3 +164,3 @@ // src/error-map.ts

// src/error-orpc.ts
import { isPlainObject } from "@orpc/shared";
import { isObject } from "@orpc/shared";
var COMMON_ORPC_ERROR_DEFS = {

@@ -279,3 +279,3 @@ BAD_REQUEST: {

static isValidJSON(json) {
return isPlainObject(json) && "defined" in json && typeof json.defined === "boolean" && "code" in json && typeof json.code === "string" && "status" in json && typeof json.status === "number" && "message" in json && typeof json.message === "string";
return isObject(json) && "defined" in json && typeof json.defined === "boolean" && "code" in json && typeof json.code === "string" && "status" in json && typeof json.status === "number" && "message" in json && typeof json.message === "string";
}

@@ -282,0 +282,0 @@ };

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

import type { AbortSignal } from './types';
export type ClientOptions<TClientContext> = {

@@ -3,0 +2,0 @@ signal?: AbortSignal;

@@ -18,3 +18,2 @@ /** unnoq */

export * from './schema';
export * from './types';
//# sourceMappingURL=index.d.ts.map
{
"name": "@orpc/contract",
"type": "module",
"version": "0.36.1",
"version": "0.37.0",
"license": "MIT",

@@ -33,3 +33,3 @@ "homepage": "https://orpc.unnoq.com",

"@standard-schema/spec": "1.0.0",
"@orpc/shared": "0.36.1"
"@orpc/shared": "0.37.0"
},

@@ -36,0 +36,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc