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

@open-rpc/schema-utils-js

Package Overview
Dependencies
Maintainers
2
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@open-rpc/schema-utils-js - npm Package Compare versions

Comparing version 1.11.4 to 1.11.5

6

build/src/get-open-rpc-document-from-file.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -37,6 +38,5 @@ });

};
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var fs_extra_1 = require("fs-extra");
var readSchemaFromFile = function (filePath) { return __awaiter(_this, void 0, void 0, function () {
var readSchemaFromFile = function (filePath) { return __awaiter(void 0, void 0, void 0, function () {
var e_1;

@@ -43,0 +43,0 @@ return __generator(this, function (_a) {

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -40,6 +41,5 @@ });

};
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var isomorphic_fetch_1 = __importDefault(require("isomorphic-fetch"));
var fetchUrlSchema = function (schema) { return __awaiter(_this, void 0, void 0, function () {
var fetchUrlSchema = function (schema) { return __awaiter(void 0, void 0, void 0, function () {
var response, e_1;

@@ -46,0 +46,0 @@ return __generator(this, function (_a) {

import { OpenRPCDocumentDereferencingError } from "./parse-open-rpc-document";
import validateOpenRPCDocument, { OpenRPCDocumentValidationError } from "./validate-open-rpc-document";
import { generateMethodParamId, generateMethodResultId, ContentDescriptorNotFoundInMethodError } from "./generate-method-id";
import { MethodCallValidator, ParameterValidationError } from "./method-call-validator";
import { MethodCallValidator, ParameterValidationError, MethodNotFoundError } from "./method-call-validator";
declare const parseOpenRPCDocument: (schema?: string | import("@open-rpc/meta-schema").OpenRPC, options?: import("./parse-open-rpc-document").IParseOpenRPCDocumentOptions) => Promise<import("@open-rpc/meta-schema").OpenRPC>;
export { parseOpenRPCDocument, generateMethodParamId, generateMethodResultId, validateOpenRPCDocument, MethodCallValidator, ParameterValidationError, OpenRPCDocumentValidationError, OpenRPCDocumentDereferencingError, ContentDescriptorNotFoundInMethodError, };
export { parseOpenRPCDocument, generateMethodParamId, generateMethodResultId, validateOpenRPCDocument, MethodNotFoundError, MethodCallValidator, ParameterValidationError, OpenRPCDocumentValidationError, OpenRPCDocumentDereferencingError, ContentDescriptorNotFoundInMethodError, };

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

exports.ParameterValidationError = method_call_validator_1.ParameterValidationError;
exports.MethodNotFoundError = method_call_validator_1.MethodNotFoundError;
var get_open_rpc_document_from_url_1 = __importDefault(require("./get-open-rpc-document-from-url"));

@@ -27,0 +28,0 @@ var noop = function (schema) {

@@ -14,6 +14,7 @@ "use strict";

var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -145,3 +146,3 @@ });

case 0:
parseOptions = __assign({}, defaultParseOpenRPCDocumentOptions, options);
parseOptions = __assign(__assign({}, defaultParseOpenRPCDocumentOptions), options);
if (!(typeof schema !== "string")) return [3 /*break*/, 1];

@@ -148,0 +149,0 @@ parsedSchema = schema;

@@ -0,1 +1,8 @@

## [1.11.5](https://github.com/open-rpc/schema-utils-js/compare/1.11.4...1.11.5) (2019-09-28)
### Bug Fixes
* **index-web:** export MethodNotFoundError ([5288fe5](https://github.com/open-rpc/schema-utils-js/commit/5288fe5))
## [1.11.4](https://github.com/open-rpc/schema-utils-js/compare/1.11.3...1.11.4) (2019-08-01)

@@ -2,0 +9,0 @@

{
"name": "@open-rpc/schema-utils-js",
"private": false,
"version": "1.11.4",
"version": "1.11.5",
"description": "",

@@ -45,3 +45,3 @@ "main": "build/src/index.js",

"@types/detect-node": "^2.0.0",
"@types/fs-extra": "^7.0.0",
"@types/fs-extra": "^8.0.0",
"@types/is-url": "^1.2.28",

@@ -57,3 +57,3 @@ "@types/isomorphic-fetch": "0.0.35",

"json-schema": "^0.2.3",
"rimraf": "^2.6.3",
"rimraf": "^3.0.0",
"ts-jest": "^24.0.0",

@@ -60,0 +60,0 @@ "tslint": "^5.13.1",

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