Socket
Socket
Sign inDemoInstall

@web3api/core-js

Package Overview
Dependencies
Maintainers
2
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3api/core-js - npm Package Compare versions

Comparing version 0.0.1-prealpha.62 to 0.0.1-prealpha.63

build/manifest/formats/web3api/0.0.1-prealpha.6.d.ts

2

build/algorithms/combine-paths.js

@@ -14,3 +14,3 @@ "use strict";

while (b[0] === "/" || b[0] === ".") {
b = b.substr(1);
b = b.substring(1);
}

@@ -17,0 +17,0 @@ return a + b;

@@ -7,2 +7,1 @@ export * from "./apply-redirects";

export * from "./parse-query";
export * from "./resolve-uri";

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

__exportStar(require("./parse-query"), exports);
__exportStar(require("./resolve-uri"), exports);
//# sourceMappingURL=index.js.map

@@ -5,1 +5,3 @@ export * from "./types";

export * from "./manifest";
export * from "./uri-resolution/core";
export * from "./uri-resolution/resolvers";

@@ -17,2 +17,4 @@ "use strict";

__exportStar(require("./manifest"), exports);
__exportStar(require("./uri-resolution/core"), exports);
__exportStar(require("./uri-resolution/resolvers"), exports);
//# sourceMappingURL=index.js.map

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

exports.deserializeBuildManifest = tracing_js_1.Tracer.traceFunc("core: deserializeBuildManifest", function (manifest, options) {
var anyBuildManifest = js_yaml_1.default.safeLoad(manifest);
var anyBuildManifest;
try {
anyBuildManifest = JSON.parse(manifest);
}
catch (e) {
anyBuildManifest = js_yaml_1.default.safeLoad(manifest);
}
if (!anyBuildManifest) {

@@ -21,0 +27,0 @@ throw Error("Unable to parse BuildManifest: " + manifest);

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

exports.deserializeMetaManifest = tracing_js_1.Tracer.traceFunc("core: deserializeMetaManifest", function (manifest, options) {
var anyMetaManifest = js_yaml_1.default.safeLoad(manifest);
var anyMetaManifest;
try {
anyMetaManifest = JSON.parse(manifest);
}
catch (e) {
anyMetaManifest = js_yaml_1.default.safeLoad(manifest);
}
if (!anyMetaManifest) {

@@ -21,0 +27,0 @@ throw Error("Unable to parse MetaManifest: " + manifest);

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

exports.deserializePluginManifest = tracing_js_1.Tracer.traceFunc("core: deserializePluginManifest", function (manifest, options) {
var anyPluginManifest = js_yaml_1.default.safeLoad(manifest);
var anyPluginManifest;
try {
anyPluginManifest = JSON.parse(manifest);
}
catch (e) {
anyPluginManifest = js_yaml_1.default.safeLoad(manifest);
}
if (!anyPluginManifest) {

@@ -21,0 +27,0 @@ throw Error("Unable to parse PluginManifest: " + manifest);

@@ -7,2 +7,2 @@ /**

import { DeserializeManifestOptions } from "../../";
export declare const deserializeWeb3ApiManifest: (manifest: string, options?: DeserializeManifestOptions | undefined) => import("./0.0.1-prealpha.5").Web3ApiManifest;
export declare const deserializeWeb3ApiManifest: (manifest: string, options?: DeserializeManifestOptions | undefined) => import("./0.0.1-prealpha.6").Web3ApiManifest;

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

exports.deserializeWeb3ApiManifest = tracing_js_1.Tracer.traceFunc("core: deserializeWeb3ApiManifest", function (manifest, options) {
var anyWeb3ApiManifest = js_yaml_1.default.safeLoad(manifest);
var anyWeb3ApiManifest;
try {
anyWeb3ApiManifest = JSON.parse(manifest);
}
catch (e) {
anyWeb3ApiManifest = js_yaml_1.default.safeLoad(manifest);
}
if (!anyWeb3ApiManifest) {

@@ -21,0 +27,0 @@ throw Error("Unable to parse Web3ApiManifest: " + manifest);

@@ -11,3 +11,4 @@ /**

import { Web3ApiManifest as Web3ApiManifest0_0_1_prealpha_5 } from "./0.0.1-prealpha.5";
export { Web3ApiManifest0_0_1_prealpha_1, Web3ApiManifest0_0_1_prealpha_2, Web3ApiManifest0_0_1_prealpha_3, Web3ApiManifest0_0_1_prealpha_4, Web3ApiManifest0_0_1_prealpha_5, };
import { Web3ApiManifest as Web3ApiManifest0_0_1_prealpha_6 } from "./0.0.1-prealpha.6";
export { Web3ApiManifest0_0_1_prealpha_1, Web3ApiManifest0_0_1_prealpha_2, Web3ApiManifest0_0_1_prealpha_3, Web3ApiManifest0_0_1_prealpha_4, Web3ApiManifest0_0_1_prealpha_5, Web3ApiManifest0_0_1_prealpha_6, };
export declare enum Web3ApiManifestFormats {

@@ -18,9 +19,10 @@ "0.0.1-prealpha.1" = "0.0.1-prealpha.1",

"0.0.1-prealpha.4" = "0.0.1-prealpha.4",
"0.0.1-prealpha.5" = "0.0.1-prealpha.5"
"0.0.1-prealpha.5" = "0.0.1-prealpha.5",
"0.0.1-prealpha.6" = "0.0.1-prealpha.6"
}
export declare type AnyWeb3ApiManifest = Web3ApiManifest0_0_1_prealpha_1 | Web3ApiManifest0_0_1_prealpha_2 | Web3ApiManifest0_0_1_prealpha_3 | Web3ApiManifest0_0_1_prealpha_4 | Web3ApiManifest0_0_1_prealpha_5;
export declare type Web3ApiManifest = Web3ApiManifest0_0_1_prealpha_5;
export declare const latestWeb3ApiManifestFormat = Web3ApiManifestFormats["0.0.1-prealpha.5"];
export declare type AnyWeb3ApiManifest = Web3ApiManifest0_0_1_prealpha_1 | Web3ApiManifest0_0_1_prealpha_2 | Web3ApiManifest0_0_1_prealpha_3 | Web3ApiManifest0_0_1_prealpha_4 | Web3ApiManifest0_0_1_prealpha_5 | Web3ApiManifest0_0_1_prealpha_6;
export declare type Web3ApiManifest = Web3ApiManifest0_0_1_prealpha_6;
export declare const latestWeb3ApiManifestFormat = Web3ApiManifestFormats["0.0.1-prealpha.6"];
export { migrateWeb3ApiManifest } from "./migrate";
export { deserializeWeb3ApiManifest } from "./deserialize";
export { validateWeb3ApiManifest } from "./validate";

@@ -17,4 +17,5 @@ "use strict";

Web3ApiManifestFormats["0.0.1-prealpha.5"] = "0.0.1-prealpha.5";
Web3ApiManifestFormats["0.0.1-prealpha.6"] = "0.0.1-prealpha.6";
})(Web3ApiManifestFormats = exports.Web3ApiManifestFormats || (exports.Web3ApiManifestFormats = {}));
exports.latestWeb3ApiManifestFormat = Web3ApiManifestFormats["0.0.1-prealpha.5"];
exports.latestWeb3ApiManifestFormat = Web3ApiManifestFormats["0.0.1-prealpha.6"];
var migrate_1 = require("./migrate");

@@ -21,0 +22,0 @@ Object.defineProperty(exports, "migrateWeb3ApiManifest", { enumerable: true, get: function () { return migrate_1.migrateWeb3ApiManifest; } });

@@ -11,3 +11,3 @@ /**

export declare const migrators: Migrator;
export declare const migrateWeb3ApiManifest: (manifest: AnyWeb3ApiManifest, to: Web3ApiManifestFormats) => import("./0.0.1-prealpha.5").Web3ApiManifest;
export declare const migrateWeb3ApiManifest: (manifest: AnyWeb3ApiManifest, to: Web3ApiManifestFormats) => import("./0.0.1-prealpha.6").Web3ApiManifest;
export {};

@@ -11,12 +11,14 @@ "use strict";

var _1 = require(".");
var _0_0_1_prealpha_1_to_0_0_1_prealpha_5_1 = require("./migrators/0.0.1-prealpha.1_to_0.0.1-prealpha.5");
var _0_0_1_prealpha_2_to_0_0_1_prealpha_5_1 = require("./migrators/0.0.1-prealpha.2_to_0.0.1-prealpha.5");
var _0_0_1_prealpha_3_to_0_0_1_prealpha_5_1 = require("./migrators/0.0.1-prealpha.3_to_0.0.1-prealpha.5");
var _0_0_1_prealpha_4_to_0_0_1_prealpha_5_1 = require("./migrators/0.0.1-prealpha.4_to_0.0.1-prealpha.5");
var _0_0_1_prealpha_1_to_0_0_1_prealpha_6_1 = require("./migrators/0.0.1-prealpha.1_to_0.0.1-prealpha.6");
var _0_0_1_prealpha_2_to_0_0_1_prealpha_6_1 = require("./migrators/0.0.1-prealpha.2_to_0.0.1-prealpha.6");
var _0_0_1_prealpha_3_to_0_0_1_prealpha_6_1 = require("./migrators/0.0.1-prealpha.3_to_0.0.1-prealpha.6");
var _0_0_1_prealpha_4_to_0_0_1_prealpha_6_1 = require("./migrators/0.0.1-prealpha.4_to_0.0.1-prealpha.6");
var _0_0_1_prealpha_5_to_0_0_1_prealpha_6_1 = require("./migrators/0.0.1-prealpha.5_to_0.0.1-prealpha.6");
var tracing_js_1 = require("@web3api/tracing-js");
exports.migrators = {
"0.0.1-prealpha.1": _0_0_1_prealpha_1_to_0_0_1_prealpha_5_1.migrate,
"0.0.1-prealpha.2": _0_0_1_prealpha_2_to_0_0_1_prealpha_5_1.migrate,
"0.0.1-prealpha.3": _0_0_1_prealpha_3_to_0_0_1_prealpha_5_1.migrate,
"0.0.1-prealpha.4": _0_0_1_prealpha_4_to_0_0_1_prealpha_5_1.migrate,
"0.0.1-prealpha.1": _0_0_1_prealpha_1_to_0_0_1_prealpha_6_1.migrate,
"0.0.1-prealpha.2": _0_0_1_prealpha_2_to_0_0_1_prealpha_6_1.migrate,
"0.0.1-prealpha.3": _0_0_1_prealpha_3_to_0_0_1_prealpha_6_1.migrate,
"0.0.1-prealpha.4": _0_0_1_prealpha_4_to_0_0_1_prealpha_6_1.migrate,
"0.0.1-prealpha.5": _0_0_1_prealpha_5_to_0_0_1_prealpha_6_1.migrate,
};

@@ -23,0 +25,0 @@ exports.migrateWeb3ApiManifest = tracing_js_1.Tracer.traceFunc("core: migrateWeb3ApiManifest", function (manifest, to) {

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

var _0_0_1_prealpha_5_json_1 = __importDefault(require("@web3api/manifest-schemas/formats/web3api/0.0.1-prealpha.5.json"));
var _0_0_1_prealpha_6_json_1 = __importDefault(require("@web3api/manifest-schemas/formats/web3api/0.0.1-prealpha.6.json"));
var tracing_js_1 = require("@web3api/tracing-js");

@@ -61,2 +62,3 @@ var jsonschema_1 = require("jsonschema");

"0.0.1-prealpha.5": _0_0_1_prealpha_5_json_1.default,
"0.0.1-prealpha.6": _0_0_1_prealpha_6_json_1.default,
};

@@ -68,2 +70,3 @@ var validator = new jsonschema_1.Validator();

jsonschema_1.Validator.prototype.customFormats.graphqlFile = Validators.graphqlFile;
jsonschema_1.Validator.prototype.customFormats.manifestFile = Validators.manifestFile;
exports.validateWeb3ApiManifest = tracing_js_1.Tracer.traceFunc("core: validateWeb3ApiManifest", function (manifest, extSchema) {

@@ -70,0 +73,0 @@ if (extSchema === void 0) { extSchema = undefined; }

@@ -12,2 +12,3 @@ export declare function file(path: unknown): boolean;

export declare function yamlFile(filePath: unknown): boolean;
export declare function manifestFile(filePath: unknown): boolean;
export declare function regexString(regex: unknown): boolean;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.regexString = exports.yamlFile = exports.jsonFile = exports.graphqlFile = exports.websiteUrl = exports.imageFile = exports.pluginLanguage = exports.wasmLanguage = exports.dockerImageId = exports.dockerfileName = exports.dockerImageName = exports.file = void 0;
exports.regexString = exports.manifestFile = exports.yamlFile = exports.jsonFile = exports.graphqlFile = exports.websiteUrl = exports.imageFile = exports.pluginLanguage = exports.wasmLanguage = exports.dockerImageId = exports.dockerfileName = exports.dockerImageName = exports.file = void 0;
function file(path) {

@@ -80,2 +80,6 @@ if (typeof path !== "string") {

exports.yamlFile = yamlFile;
function manifestFile(filePath) {
return jsonFile(filePath) || yamlFile(filePath);
}
exports.manifestFile = manifestFile;
function regexString(regex) {

@@ -82,0 +86,0 @@ if (typeof regex !== "string") {

@@ -1,3 +0,4 @@

import { QueryHandler, InvokeHandler, SubscriptionHandler, UriRedirect, Uri, PluginRegistration, InterfaceImplementations, Env } from "./";
import { QueryHandler, InvokeHandler, SubscriptionHandler, UriRedirect, Uri, PluginRegistration, InterfaceImplementations, Env, ResolveUriOptions, Api } from "./";
import { ManifestType, AnyManifest } from "../manifest";
import { UriToApiResolver, ResolveUriError, UriResolutionHistory } from "../uri-resolution/core";
export interface ClientConfig<TUri extends Uri | string = string> {

@@ -8,2 +9,3 @@ redirects: UriRedirect<TUri>[];

envs: Env<TUri>[];
resolvers: UriToApiResolver[];
}

@@ -18,2 +20,3 @@ export interface Contextualized {

export declare type GetEnvsOptions = Contextualized;
export declare type GetResolversOptions = Contextualized;
export interface GetManifestOptions<TManifestType extends ManifestType> extends Contextualized {

@@ -34,2 +37,3 @@ type: TManifestType;

getEnvs(options: GetEnvsOptions): readonly Env<Uri>[];
getResolvers(options: GetResolversOptions): readonly UriToApiResolver[];
getEnvByUri<TUri extends Uri | string>(uri: TUri, options: GetEnvsOptions): Env<Uri> | undefined;

@@ -40,2 +44,8 @@ getSchema<TUri extends Uri | string>(uri: TUri, options: GetSchemaOptions): Promise<string>;

getImplementations<TUri extends Uri | string>(uri: TUri, options: GetImplementationsOptions): TUri[];
resolveUri<TUri extends Uri | string>(uri: TUri, options?: ResolveUriOptions<ClientConfig>): Promise<{
api?: Api;
uri?: Uri;
uriHistory: UriResolutionHistory;
error?: ResolveUriError;
}>;
}

@@ -13,1 +13,2 @@ export * from "./Api";

export * from "./PluginRegistration";
export * from "./ResolveUriOptions";

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

__exportStar(require("./PluginRegistration"), exports);
__exportStar(require("./ResolveUriOptions"), exports);
//# sourceMappingURL=index.js.map

@@ -77,3 +77,3 @@ "use strict";

while (processed[0] === "/") {
processed = processed.substr(1);
processed = processed.substring(1);
}

@@ -80,0 +80,0 @@ // Check for the w3:// scheme, add if it isn't there

{
"name": "@web3api/core-js",
"description": "Web3API Javascript Core",
"version": "0.0.1-prealpha.62",
"version": "0.0.1-prealpha.63",
"license": "MIT",

@@ -23,4 +23,4 @@ "repository": {

"dependencies": {
"@web3api/manifest-schemas": "0.0.1-prealpha.62",
"@web3api/tracing-js": "0.0.1-prealpha.62",
"@web3api/manifest-schemas": "0.0.1-prealpha.63",
"@web3api/tracing-js": "0.0.1-prealpha.63",
"graphql": "15.5.0",

@@ -35,3 +35,3 @@ "graphql-tag": "2.10.4",

"@types/semver": "7.3.8",
"@web3api/os-js": "0.0.1-prealpha.62",
"@web3api/os-js": "0.0.1-prealpha.63",
"jest": "26.6.3",

@@ -45,3 +45,3 @@ "json-schema-to-typescript": "10.1.3",

},
"gitHead": "0512e06efafaa2564fab38f68549b2a18923bb8f",
"gitHead": "e0e8ea96ac7a69113fd727e2885901024e32d752",
"publishConfig": {

@@ -48,0 +48,0 @@ "access": "public"

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

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

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

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

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