@web3api/core-js
Advanced tools
Comparing version 0.0.1-prealpha.31 to 0.0.1-prealpha.32
export * from "./web3api"; | ||
export * from "./web3api.build"; | ||
export * from "./web3api.plugin"; |
@@ -15,2 +15,3 @@ "use strict"; | ||
__exportStar(require("./web3api.build"), exports); | ||
__exportStar(require("./web3api.plugin"), exports); | ||
//# sourceMappingURL=index.js.map |
@@ -16,2 +16,3 @@ /** | ||
}; | ||
__type: "BuildManifest"; | ||
} |
@@ -7,2 +7,2 @@ /** | ||
import { DeserializeManifestOptions } from "../../"; | ||
export declare const deserializeBuildManifest: (manifest: string, options?: DeserializeManifestOptions | undefined) => import("./0.0.1-prealpha.2").BuildManifest; | ||
export declare const deserializeBuildManifest: (manifest: string, options?: DeserializeManifestOptions | undefined) => import("./0.0.1-prealpha.1").BuildManifest; |
@@ -25,2 +25,3 @@ "use strict"; | ||
} | ||
anyBuildManifest.__type = "BuildManifest"; | ||
var versionCompare = semver_1.compare(anyBuildManifest.format, _1.latestBuildManifestFormat); | ||
@@ -27,0 +28,0 @@ if (versionCompare === -1) { |
@@ -6,12 +6,12 @@ /** | ||
*/ | ||
import { BuildManifest as BuildManifest0_0_1_prealpha_2 } from "./0.0.1-prealpha.2"; | ||
export { BuildManifest0_0_1_prealpha_2, }; | ||
import { BuildManifest as BuildManifest0_0_1_prealpha_1 } from "./0.0.1-prealpha.1"; | ||
export { BuildManifest0_0_1_prealpha_1, }; | ||
export declare enum BuildManifestFormats { | ||
"0.0.1-prealpha.2" = "0.0.1-prealpha.2" | ||
"0.0.1-prealpha.1" = "0.0.1-prealpha.1" | ||
} | ||
export declare type AnyBuildManifest = BuildManifest0_0_1_prealpha_2; | ||
export declare type BuildManifest = BuildManifest0_0_1_prealpha_2; | ||
export declare const latestBuildManifestFormat = BuildManifestFormats["0.0.1-prealpha.2"]; | ||
export declare type AnyBuildManifest = BuildManifest0_0_1_prealpha_1; | ||
export declare type BuildManifest = BuildManifest0_0_1_prealpha_1; | ||
export declare const latestBuildManifestFormat = BuildManifestFormats["0.0.1-prealpha.1"]; | ||
export { migrateBuildManifest } from "./migrate"; | ||
export { deserializeBuildManifest } from "./deserialize"; | ||
export { validateBuildManifest } from "./validate"; |
@@ -12,5 +12,5 @@ "use strict"; | ||
(function (BuildManifestFormats) { | ||
BuildManifestFormats["0.0.1-prealpha.2"] = "0.0.1-prealpha.2"; | ||
BuildManifestFormats["0.0.1-prealpha.1"] = "0.0.1-prealpha.1"; | ||
})(BuildManifestFormats = exports.BuildManifestFormats || (exports.BuildManifestFormats = {})); | ||
exports.latestBuildManifestFormat = BuildManifestFormats["0.0.1-prealpha.2"]; | ||
exports.latestBuildManifestFormat = BuildManifestFormats["0.0.1-prealpha.1"]; | ||
var migrate_1 = require("./migrate"); | ||
@@ -17,0 +17,0 @@ Object.defineProperty(exports, "migrateBuildManifest", { enumerable: true, get: function () { return migrate_1.migrateBuildManifest; } }); |
@@ -11,3 +11,3 @@ /** | ||
export declare const migrators: Migrator; | ||
export declare const migrateBuildManifest: (manifest: import("./0.0.1-prealpha.2").BuildManifest, to: BuildManifestFormats) => import("./0.0.1-prealpha.2").BuildManifest; | ||
export declare const migrateBuildManifest: (manifest: import("./0.0.1-prealpha.1").BuildManifest, to: BuildManifestFormats) => import("./0.0.1-prealpha.1").BuildManifest; | ||
export {}; |
import { Schema } from "jsonschema"; | ||
export declare const validateBuildManifest: (manifest: import("./0.0.1-prealpha.2").BuildManifest, extSchema?: Schema | undefined) => void; | ||
export declare const validateBuildManifest: (manifest: import("./0.0.1-prealpha.1").BuildManifest, extSchema?: Schema | undefined) => void; |
@@ -34,7 +34,7 @@ "use strict"; | ||
var Validators = __importStar(require("../../validators")); | ||
var _0_0_1_prealpha_2_json_1 = __importDefault(require("@web3api/manifest-schemas/formats/web3api.build/0.0.1-prealpha.2.json")); | ||
var _0_0_1_prealpha_1_json_1 = __importDefault(require("@web3api/manifest-schemas/formats/web3api.build/0.0.1-prealpha.1.json")); | ||
var tracing_js_1 = require("@web3api/tracing-js"); | ||
var jsonschema_1 = require("jsonschema"); | ||
var schemas = { | ||
"0.0.1-prealpha.2": _0_0_1_prealpha_2_json_1.default, | ||
"0.0.1-prealpha.1": _0_0_1_prealpha_1_json_1.default, | ||
}; | ||
@@ -41,0 +41,0 @@ var validator = new jsonschema_1.Validator(); |
@@ -28,8 +28,7 @@ /** | ||
}; | ||
import_redirects?: [] | [ | ||
{ | ||
uri: string; | ||
schema: string; | ||
} | ||
]; | ||
import_redirects?: { | ||
uri: string; | ||
schema: string; | ||
}[]; | ||
__type: "Web3ApiManifest"; | ||
} |
@@ -21,8 +21,7 @@ /** | ||
}; | ||
import_redirects?: [] | [ | ||
{ | ||
uri: string; | ||
schema: string; | ||
} | ||
]; | ||
import_redirects?: { | ||
uri: string; | ||
schema: string; | ||
}[]; | ||
__type: "Web3ApiManifest"; | ||
} |
@@ -22,8 +22,7 @@ /** | ||
}; | ||
import_redirects?: [] | [ | ||
{ | ||
uri: string; | ||
schema: string; | ||
} | ||
]; | ||
import_redirects?: { | ||
uri: string; | ||
schema: string; | ||
}[]; | ||
__type: "Web3ApiManifest"; | ||
} |
@@ -7,2 +7,2 @@ /** | ||
import { DeserializeManifestOptions } from "../../"; | ||
export declare const deserializeWeb3ApiManifest: (manifest: string, options?: DeserializeManifestOptions | undefined) => import("./0.0.1-prealpha.3").Web3ApiManifest; | ||
export declare const deserializeWeb3ApiManifest: (manifest: string, options?: DeserializeManifestOptions | undefined) => import("./0.0.1-prealpha.4").Web3ApiManifest; |
@@ -25,2 +25,3 @@ "use strict"; | ||
} | ||
anyWeb3ApiManifest.__type = "Web3ApiManifest"; | ||
var versionCompare = semver_1.compare(anyWeb3ApiManifest.format, _1.latestWeb3ApiManifestFormat); | ||
@@ -27,0 +28,0 @@ if (versionCompare === -1) { |
@@ -9,13 +9,15 @@ /** | ||
import { Web3ApiManifest as Web3ApiManifest0_0_1_prealpha_3 } from "./0.0.1-prealpha.3"; | ||
export { Web3ApiManifest0_0_1_prealpha_1, Web3ApiManifest0_0_1_prealpha_2, Web3ApiManifest0_0_1_prealpha_3, }; | ||
import { Web3ApiManifest as Web3ApiManifest0_0_1_prealpha_4 } from "./0.0.1-prealpha.4"; | ||
export { Web3ApiManifest0_0_1_prealpha_1, Web3ApiManifest0_0_1_prealpha_2, Web3ApiManifest0_0_1_prealpha_3, Web3ApiManifest0_0_1_prealpha_4, }; | ||
export declare enum Web3ApiManifestFormats { | ||
"0.0.1-prealpha.1" = "0.0.1-prealpha.1", | ||
"0.0.1-prealpha.2" = "0.0.1-prealpha.2", | ||
"0.0.1-prealpha.3" = "0.0.1-prealpha.3" | ||
"0.0.1-prealpha.3" = "0.0.1-prealpha.3", | ||
"0.0.1-prealpha.4" = "0.0.1-prealpha.4" | ||
} | ||
export declare type AnyWeb3ApiManifest = Web3ApiManifest0_0_1_prealpha_1 | Web3ApiManifest0_0_1_prealpha_2 | Web3ApiManifest0_0_1_prealpha_3; | ||
export declare type Web3ApiManifest = Web3ApiManifest0_0_1_prealpha_3; | ||
export declare const latestWeb3ApiManifestFormat = Web3ApiManifestFormats["0.0.1-prealpha.3"]; | ||
export declare type AnyWeb3ApiManifest = Web3ApiManifest0_0_1_prealpha_1 | Web3ApiManifest0_0_1_prealpha_2 | Web3ApiManifest0_0_1_prealpha_3 | Web3ApiManifest0_0_1_prealpha_4; | ||
export declare type Web3ApiManifest = Web3ApiManifest0_0_1_prealpha_4; | ||
export declare const latestWeb3ApiManifestFormat = Web3ApiManifestFormats["0.0.1-prealpha.4"]; | ||
export { migrateWeb3ApiManifest } from "./migrate"; | ||
export { deserializeWeb3ApiManifest } from "./deserialize"; | ||
export { validateWeb3ApiManifest } from "./validate"; |
@@ -15,4 +15,5 @@ "use strict"; | ||
Web3ApiManifestFormats["0.0.1-prealpha.3"] = "0.0.1-prealpha.3"; | ||
Web3ApiManifestFormats["0.0.1-prealpha.4"] = "0.0.1-prealpha.4"; | ||
})(Web3ApiManifestFormats = exports.Web3ApiManifestFormats || (exports.Web3ApiManifestFormats = {})); | ||
exports.latestWeb3ApiManifestFormat = Web3ApiManifestFormats["0.0.1-prealpha.3"]; | ||
exports.latestWeb3ApiManifestFormat = Web3ApiManifestFormats["0.0.1-prealpha.4"]; | ||
var migrate_1 = require("./migrate"); | ||
@@ -19,0 +20,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.3").Web3ApiManifest; | ||
export declare const migrateWeb3ApiManifest: (manifest: AnyWeb3ApiManifest, to: Web3ApiManifestFormats) => import("./0.0.1-prealpha.4").Web3ApiManifest; | ||
export {}; |
@@ -11,8 +11,10 @@ "use strict"; | ||
var _1 = require("."); | ||
var _0_0_1_prealpha_1_to_0_0_1_prealpha_3_1 = require("./migrators/0.0.1-prealpha.1_to_0.0.1-prealpha.3"); | ||
var _0_0_1_prealpha_2_to_0_0_1_prealpha_3_1 = require("./migrators/0.0.1-prealpha.2_to_0.0.1-prealpha.3"); | ||
var _0_0_1_prealpha_1_to_0_0_1_prealpha_4_1 = require("./migrators/0.0.1-prealpha.1_to_0.0.1-prealpha.4"); | ||
var _0_0_1_prealpha_2_to_0_0_1_prealpha_4_1 = require("./migrators/0.0.1-prealpha.2_to_0.0.1-prealpha.4"); | ||
var _0_0_1_prealpha_3_to_0_0_1_prealpha_4_1 = require("./migrators/0.0.1-prealpha.3_to_0.0.1-prealpha.4"); | ||
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_3_1.migrate, | ||
"0.0.1-prealpha.2": _0_0_1_prealpha_2_to_0_0_1_prealpha_3_1.migrate, | ||
"0.0.1-prealpha.1": _0_0_1_prealpha_1_to_0_0_1_prealpha_4_1.migrate, | ||
"0.0.1-prealpha.2": _0_0_1_prealpha_2_to_0_0_1_prealpha_4_1.migrate, | ||
"0.0.1-prealpha.3": _0_0_1_prealpha_3_to_0_0_1_prealpha_4_1.migrate, | ||
}; | ||
@@ -19,0 +21,0 @@ exports.migrateWeb3ApiManifest = tracing_js_1.Tracer.traceFunc("core: migrateWeb3ApiManifest", function (manifest, to) { |
@@ -37,2 +37,3 @@ "use strict"; | ||
var _0_0_1_prealpha_3_json_1 = __importDefault(require("@web3api/manifest-schemas/formats/web3api/0.0.1-prealpha.3.json")); | ||
var _0_0_1_prealpha_4_json_1 = __importDefault(require("@web3api/manifest-schemas/formats/web3api/0.0.1-prealpha.4.json")); | ||
var tracing_js_1 = require("@web3api/tracing-js"); | ||
@@ -44,2 +45,3 @@ var jsonschema_1 = require("jsonschema"); | ||
"0.0.1-prealpha.3": _0_0_1_prealpha_3_json_1.default, | ||
"0.0.1-prealpha.4": _0_0_1_prealpha_4_json_1.default, | ||
}; | ||
@@ -46,0 +48,0 @@ var validator = new jsonschema_1.Validator(); |
@@ -6,1 +6,2 @@ export declare function file(path: unknown): boolean; | ||
export declare function wasmLanguage(language: unknown): boolean; | ||
export declare function pluginLanguage(language: unknown): boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.wasmLanguage = exports.dockerImageId = exports.dockerfileName = exports.dockerImageName = exports.file = void 0; | ||
exports.pluginLanguage = exports.wasmLanguage = exports.dockerImageId = exports.dockerfileName = exports.dockerImageName = exports.file = void 0; | ||
function file(path) { | ||
@@ -18,38 +18,22 @@ if (typeof path !== "string") { | ||
function dockerImageName(name) { | ||
if (typeof name !== "string") { | ||
return false; | ||
} | ||
return true; | ||
return typeof name === "string"; | ||
} | ||
exports.dockerImageName = dockerImageName; | ||
function dockerfileName(value) { | ||
if (typeof value !== "string") { | ||
return false; | ||
} | ||
if (file(value) && value.indexOf("Dockerfile") > -1) { | ||
return true; | ||
} | ||
return true; | ||
return (typeof value === "string" && file(value) && value.indexOf("Dockerfile") > -1); | ||
} | ||
exports.dockerfileName = dockerfileName; | ||
function dockerImageId(value) { | ||
if (typeof value !== "string") { | ||
return false; | ||
} | ||
if (value.indexOf("sha256:") === -1) { | ||
return false; | ||
} | ||
return true; | ||
return typeof value === "string" && value.indexOf("sha256:") > -1; | ||
} | ||
exports.dockerImageId = dockerImageId; | ||
function wasmLanguage(language) { | ||
if (typeof language !== "string") { | ||
return false; | ||
} | ||
if (language.indexOf("wasm/") > -1) { | ||
return true; | ||
} | ||
return false; | ||
return (typeof language === "string" && | ||
(language === "interface" || language.indexOf("wasm/") > -1)); | ||
} | ||
exports.wasmLanguage = wasmLanguage; | ||
function pluginLanguage(language) { | ||
return typeof language === "string" && language.indexOf("plugin/") > -1; | ||
} | ||
exports.pluginLanguage = pluginLanguage; | ||
//# sourceMappingURL=validators.js.map |
import { Uri, Client, InvokableModules, MaybeAsync } from "."; | ||
/** The plugin's configuration */ | ||
export interface PluginManifest { | ||
/** The API's schema */ | ||
schema: string; | ||
/** All interface schemas implemented by this plugin. */ | ||
implements: Uri[]; | ||
} | ||
/** | ||
@@ -41,7 +34,14 @@ * Invocable plugin method. | ||
} | ||
/** The plugin package's manifest */ | ||
export interface PluginPackageManifest { | ||
/** The API's schema */ | ||
schema: string; | ||
/** All interface schemas implemented by this plugin. */ | ||
implements: Uri[]; | ||
} | ||
export declare type PluginPackage = { | ||
factory: () => Plugin; | ||
manifest: PluginManifest; | ||
manifest: PluginPackageManifest; | ||
}; | ||
export declare type PluginFactory<TOpts> = (opts: TOpts) => PluginPackage; | ||
export {}; |
{ | ||
"name": "@web3api/core-js", | ||
"description": "Web3API Javascript Core", | ||
"version": "0.0.1-prealpha.31", | ||
"version": "0.0.1-prealpha.32", | ||
"license": "MIT", | ||
@@ -23,4 +23,4 @@ "repository": { | ||
"dependencies": { | ||
"@web3api/manifest-schemas": "0.0.1-prealpha.31", | ||
"@web3api/tracing-js": "0.0.1-prealpha.31", | ||
"@web3api/manifest-schemas": "0.0.1-prealpha.32", | ||
"@web3api/tracing-js": "0.0.1-prealpha.32", | ||
"graphql": "15.5.0", | ||
@@ -30,7 +30,8 @@ "graphql-tag": "2.10.4", | ||
"jsonschema": "1.4.0", | ||
"semver": "7.3.4" | ||
"semver": "7.3.5" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "26.0.8", | ||
"@web3api/os-js": "0.0.1-prealpha.31", | ||
"@types/semver": "7.3.8", | ||
"@web3api/os-js": "0.0.1-prealpha.32", | ||
"jest": "26.6.3", | ||
@@ -44,3 +45,3 @@ "json-schema-to-typescript": "10.1.3", | ||
}, | ||
"gitHead": "6d0d2cca02a292be1b1bf530a03d2714a4f03bb3", | ||
"gitHead": "74b56a2cc49ce1fe95c16fc63cb39fd816671b49", | ||
"publishConfig": { | ||
@@ -47,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131183
150
2074
10
+ Added@web3api/tracing-js@0.0.1-prealpha.32(transitive)
+ Addedsemver@7.3.5(transitive)
- Removed@web3api/tracing-js@0.0.1-prealpha.31(transitive)
- Removedsemver@7.3.4(transitive)
Updatedsemver@7.3.5