@web3api/core-js
Advanced tools
Comparing version 0.0.1-prealpha.8 to 0.0.1-prealpha.9
@@ -7,2 +7,8 @@ "use strict"; | ||
var result = []; | ||
var addUniqueResult = function (uri) { | ||
// If the URI hasn't been added already | ||
if (result.findIndex(function (i) { return types_1.Uri.equals(i, uri); }) === -1) { | ||
result.push(uri); | ||
} | ||
}; | ||
for (var _i = 0, redirects_1 = redirects; _i < redirects_1.length; _i++) { | ||
@@ -15,3 +21,3 @@ var redirect = redirects_1[_i]; | ||
if (implementedApi) { | ||
result.push(redirect.from); | ||
addUniqueResult(redirect.from); | ||
} | ||
@@ -22,3 +28,3 @@ } | ||
if (types_1.Uri.equals(redirect.from, abstractApi)) { | ||
result.push(redirect.to); | ||
addUniqueResult(redirect.to); | ||
} | ||
@@ -25,0 +31,0 @@ } |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -136,3 +136,3 @@ return result; | ||
resolvedUri = convertedUri; | ||
i = 0; | ||
i = -1; | ||
return [3 /*break*/, 3]; | ||
@@ -150,3 +150,5 @@ } | ||
// We've failed to resolve the URI | ||
throw Error("No Web3API found at URI: " + uri.uri); | ||
throw Error("No Web3API found at URI: " + uri.uri + | ||
("\nResolution Path: " + JSON.stringify(uriHistory, null, 2)) + | ||
("\nResolvers Used: " + uriResolverImplementations)); | ||
} | ||
@@ -153,0 +155,0 @@ }); |
@@ -17,3 +17,3 @@ "use strict"; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -20,0 +20,0 @@ return result; |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -28,6 +28,8 @@ /** | ||
}; | ||
import_redirects?: [] | [{ | ||
uri: string; | ||
schema: string; | ||
}]; | ||
import_redirects?: [] | [ | ||
{ | ||
uri: string; | ||
schema: string; | ||
} | ||
]; | ||
} |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "@web3api/core-js", | ||
"description": "Web3API Javascript Core", | ||
"version": "0.0.1-prealpha.8", | ||
"version": "0.0.1-prealpha.9", | ||
"license": "MIT", | ||
@@ -23,4 +23,4 @@ "repository": { | ||
"dependencies": { | ||
"@web3api/manifest-schema": "0.0.1-prealpha.8", | ||
"graphql": "15.3.0", | ||
"@web3api/manifest-schema": "0.0.1-prealpha.9", | ||
"graphql": "15.5.0", | ||
"graphql-tag": "2.10.4", | ||
@@ -33,10 +33,10 @@ "js-yaml": "3.14.0", | ||
"@types/jest": "26.0.8", | ||
"jest": "26.2.2", | ||
"jest": "26.6.3", | ||
"json-schema-to-typescript": "10.1.3", | ||
"rimraf": "3.0.2", | ||
"ts-jest": "26.1.4", | ||
"ts-jest": "26.5.4", | ||
"ts-node": "8.10.2", | ||
"typescript": "3.9.7" | ||
"typescript": "4.0.7" | ||
}, | ||
"gitHead": "6a84f6875f7b6d9ca3e283b796f1c70f9eb6185b", | ||
"gitHead": "8efa3ec6b9f54abf4450cd44fe2558226407e2fc", | ||
"publishConfig": { | ||
@@ -43,0 +43,0 @@ "access": "public" |
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
71868
1185
+ Added@web3api/manifest-schema@0.0.1-prealpha.9(transitive)
+ Addedgraphql@15.5.0(transitive)
- Removed@web3api/manifest-schema@0.0.1-prealpha.8(transitive)
- Removedgraphql@15.3.0(transitive)
Updatedgraphql@15.5.0