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

data-prism

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

data-prism - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/store.d.ts

7

dist/graph/query.js

@@ -93,3 +93,8 @@ import { defaultExpressionEngine } from "@data-prism/expressions";

return result[propName]
.map((r) => go({ ...propQuery, type: r[TYPE], id: r[ID] }))
.map((r) => {
if (r === undefined) {
throw new Error(`A related resource was not found on resource ${query.type}.${query.id}. ${propName}: ${JSON.stringify(result[propName])}. Check that all of the refs in ${query.type}.${query.id} are valid.`);
}
return go({ ...propQuery, type: r[TYPE], id: r[ID] });
})
.filter(Boolean);

@@ -96,0 +101,0 @@ }

8

helpers.md

@@ -11,7 +11,7 @@ # Helper Functions

{
"id": "a-uuid",
"id": "an-id",
"name": "Tenderheart Bear",
"powers": ["some-uuid", "another-uuid"],
"powers": ["some-id", "another-id"],
"home": {
"id": "home-uuid",
"id": "home-id",
"name": "Care-a-Lot"

@@ -87,3 +87,3 @@ }

```javascript
normalizeResources(resourceType, flatResources, schema, (graphMappers = {}));
normalizeResources(resourceType, flatResources, schema, graphMappers = {});
```

@@ -90,0 +90,0 @@

{
"name": "data-prism",
"version": "0.0.2",
"version": "0.0.3",
"type": "module",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -131,3 +131,17 @@ import { defaultExpressionEngine } from "@data-prism/expressions";

return result[propName]
.map((r) => go({ ...propQuery, type: r[TYPE], id: r[ID] }))
.map((r) => {
if (r === undefined) {
throw new Error(
`A related resource was not found on resource ${
query.type
}.${query.id}. ${propName}: ${JSON.stringify(
result[propName],
)}. Check that all of the refs in ${query.type}.${
query.id
} are valid.`,
);
}
return go({ ...propQuery, type: r[TYPE], id: r[ID] });
})
.filter(Boolean);

@@ -134,0 +148,0 @@ }

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