Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stoplight/spectral-core

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stoplight/spectral-core - npm Package Compare versions

Comparing version 1.8.0 to 1.8.1

37

dist/runner/runner.js

@@ -9,3 +9,2 @@ "use strict";

const json_1 = require("@stoplight/json");
const isAggregateError_1 = require("../guards/isAggregateError");
class Runner {

@@ -85,26 +84,16 @@ constructor(runtime, inventory) {

}
try {
const nimma = new legacy_1.default(jsonPathExpressions, {
fallback: fallbacks_1.jsonPathPlus,
unsafe: false,
output: 'auto',
});
nimma.query(input, Object.entries(callbacks).reduce((mapped, [key, cbs]) => {
mapped[key] = scope => {
for (const cb of cbs) {
cb(scope);
}
};
return mapped;
}, {}));
}
catch (e) {
if ((0, isAggregateError_1.isAggregateError)(e) && e.errors.length === 1) {
throw e.errors[0];
}
else {
throw e;
}
}
const nimma = new legacy_1.default(jsonPathExpressions, {
fallback: fallbacks_1.jsonPathPlus,
unsafe: false,
output: 'auto',
});
nimma.query(input, Object.entries(callbacks).reduce((mapped, [key, cbs]) => {
mapped[key] = scope => {
for (const cb of cbs) {
cb(scope);
}
};
return mapped;
}, {}));
}
//# sourceMappingURL=runner.js.map
{
"name": "@stoplight/spectral-core",
"version": "1.8.0",
"version": "1.8.1",
"main": "dist/index.js",

@@ -26,3 +26,3 @@ "types": "dist/index.d.ts",

"@stoplight/better-ajv-errors": "1.0.1",
"@stoplight/json": "3.17.0",
"@stoplight/json": "~3.17.1",
"@stoplight/lifecycle": "2.3.2",

@@ -34,7 +34,7 @@ "@stoplight/path": "1.3.2",

"@stoplight/types": "12.3.0",
"ajv": "~8.6.0",
"ajv": "^8.6.0",
"ajv-errors": "~3.0.0",
"ajv-formats": "~2.1.0",
"blueimp-md5": "2.18.0",
"json-schema": "0.3.0",
"json-schema": "0.4.0",
"jsonpath-plus": "6.0.1",

@@ -44,3 +44,3 @@ "lodash": "~4.17.21",

"minimatch": "3.0.4",
"nimma": "0.1.6",
"nimma": "0.1.7",
"simple-eval": "1.0.0",

@@ -47,0 +47,0 @@ "tslib": "^2.3.0"

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