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

@orpc/shared

Package Overview
Dependencies
Maintainers
0
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orpc/shared - npm Package Compare versions

Comparing version 0.0.0-next-20241118065609 to 0.0.0-next-20241119022811

9

dist/index.js
import { isPlainObject } from "is-what";
import { isPlainObject as isPlainObject2 } from "is-what";
import { guard, mapEntries, omit, trim } from "radash";
import { guard, mapEntries, mapValues, omit, trim } from "radash";
function parseJSONSafely(text) {

@@ -28,5 +28,11 @@ if (text === "") return void 0;

for (const segment of segments) {
if (typeof currentRef !== "object" && typeof currentRef !== "function" || currentRef === null) {
return void 0;
}
currentRef = currentRef[preSegment];
preSegment = segment;
}
if (typeof currentRef !== "object" && typeof currentRef !== "function" || currentRef === null) {
return void 0;
}
return currentRef[preSegment];

@@ -55,2 +61,3 @@ }

mapEntries,
mapValues,
omit,

@@ -57,0 +64,0 @@ parseJSONSafely,

2

dist/src/index.d.ts

@@ -5,3 +5,3 @@ export type * from 'type-fest';

export { isPlainObject } from 'is-what';
export { guard, trim, mapEntries, omit } from 'radash';
export { guard, trim, mapEntries, omit, mapValues } from 'radash';
//# sourceMappingURL=index.d.ts.map
{
"name": "@orpc/shared",
"type": "module",
"version": "0.0.0-next-20241118065609",
"version": "0.0.0-next-20241119022811",
"author": {

@@ -6,0 +6,0 @@ "name": "unnoq",

@@ -7,2 +7,2 @@ export type * from 'type-fest'

export { isPlainObject } from 'is-what'
export { guard, trim, mapEntries, omit } from 'radash'
export { guard, trim, mapEntries, omit, mapValues } from 'radash'

@@ -35,2 +35,9 @@ import { isPlainObject } from 'is-what'

for (const segment of segments) {
if (
(typeof currentRef !== 'object' && typeof currentRef !== 'function') ||
currentRef === null
) {
return undefined
}
currentRef = currentRef[preSegment]

@@ -40,2 +47,9 @@ preSegment = segment

if (
(typeof currentRef !== 'object' && typeof currentRef !== 'function') ||
currentRef === null
) {
return undefined
}
return currentRef[preSegment]

@@ -42,0 +56,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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