@open-rpc/typings
Advanced tools
Comparing version 1.11.3 to 1.11.4
@@ -20,5 +20,6 @@ "use strict"; | ||
var titleizer_1 = __importDefault(require("@json-schema-tools/titleizer")); | ||
exports.getMethodAliasName = function (method) { | ||
var getMethodAliasName = function (method) { | ||
return utils_1.languageSafeName(method.name); | ||
}; | ||
exports.getMethodAliasName = getMethodAliasName; | ||
var getMethodTyping = function (method) { | ||
@@ -32,3 +33,3 @@ var mResult = method.result; | ||
}; | ||
exports.getMethodTypings = function (openrpcDocument) { | ||
var getMethodTypings = function (openrpcDocument) { | ||
var fns = openrpcDocument.methods.map(getMethodTyping); | ||
@@ -41,2 +42,3 @@ return [ | ||
}; | ||
exports.getMethodTypings = getMethodTypings; | ||
var generator = { | ||
@@ -43,0 +45,0 @@ getMethodAliasName: exports.getMethodAliasName, |
@@ -8,3 +8,3 @@ "use strict"; | ||
}; | ||
exports.getMethodTypings = function (openrpcDocument) { | ||
var getMethodTypings = function (openrpcDocument) { | ||
return openrpcDocument.methods | ||
@@ -14,5 +14,7 @@ .map(function (method) { return getMethodTyping(method); }) | ||
}; | ||
exports.getMethodAliasName = function (method) { | ||
exports.getMethodTypings = getMethodTypings; | ||
var getMethodAliasName = function (method) { | ||
return utils_1.languageSafeName(method.name); | ||
}; | ||
exports.getMethodAliasName = getMethodAliasName; | ||
var generator = { | ||
@@ -19,0 +21,0 @@ getMethodAliasName: exports.getMethodAliasName, |
@@ -20,5 +20,6 @@ "use strict"; | ||
var titleizer_1 = __importDefault(require("@json-schema-tools/titleizer")); | ||
exports.getMethodAliasName = function (method) { | ||
var getMethodAliasName = function (method) { | ||
return utils_1.languageSafeName(method.name); | ||
}; | ||
exports.getMethodAliasName = getMethodAliasName; | ||
var getMethodTyping = function (method) { | ||
@@ -34,3 +35,3 @@ var mResult = method.result; | ||
}; | ||
exports.getMethodTypings = function (openrpcDocument) { | ||
var getMethodTypings = function (openrpcDocument) { | ||
return openrpcDocument.methods | ||
@@ -40,2 +41,3 @@ .map(function (method) { return getMethodTyping(method); }) | ||
}; | ||
exports.getMethodTypings = getMethodTypings; | ||
var generator = { | ||
@@ -42,0 +44,0 @@ getMethodAliasName: exports.getMethodAliasName, |
@@ -20,5 +20,6 @@ "use strict"; | ||
var titleizer_1 = __importDefault(require("@json-schema-tools/titleizer")); | ||
exports.getMethodAliasName = function (method) { | ||
var getMethodAliasName = function (method) { | ||
return utils_1.languageSafeName(method.name); | ||
}; | ||
exports.getMethodAliasName = getMethodAliasName; | ||
var getMethodTyping = function (method) { | ||
@@ -36,3 +37,3 @@ var result = method.result; | ||
}; | ||
exports.getMethodTypings = function (openrpcDocument) { | ||
var getMethodTypings = function (openrpcDocument) { | ||
return openrpcDocument.methods | ||
@@ -42,2 +43,3 @@ .map(function (method) { return getMethodTyping(method); }) | ||
}; | ||
exports.getMethodTypings = getMethodTypings; | ||
var generator = { | ||
@@ -44,0 +46,0 @@ getMethodAliasName: exports.getMethodAliasName, |
@@ -13,15 +13,13 @@ "use strict"; | ||
}; | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.deepClone = exports.getSchemasForOpenRPCDocument = exports.flatten = void 0; | ||
exports.flatten = function (arr) { | ||
var flatten = function (arr) { | ||
return arr.reduce(function (memo, val) { | ||
if (val instanceof Array) { | ||
return __spreadArrays(memo, val); | ||
return __spreadArray(__spreadArray([], memo), val); | ||
} | ||
@@ -34,3 +32,4 @@ else { | ||
}; | ||
exports.getSchemasForOpenRPCDocument = function (openrpcDocument) { | ||
exports.flatten = flatten; | ||
var getSchemasForOpenRPCDocument = function (openrpcDocument) { | ||
var methods = openrpcDocument.methods; | ||
@@ -49,3 +48,4 @@ var params = exports.flatten(methods.map(function (method) { return method.params; })); | ||
}; | ||
exports.deepClone = function (obj, hash) { | ||
exports.getSchemasForOpenRPCDocument = getSchemasForOpenRPCDocument; | ||
var deepClone = function (obj, hash) { | ||
if (hash === void 0) { hash = new WeakMap(); } | ||
@@ -79,3 +79,3 @@ if (Object(obj) !== obj) | ||
hash.set(obj, result); | ||
return Object.assign.apply(Object, __spreadArrays([result], Object.keys(obj).map(function (key) { | ||
return Object.assign.apply(Object, __spreadArray([result], Object.keys(obj).map(function (key) { | ||
var _a; | ||
@@ -85,1 +85,2 @@ return (_a = {}, _a[key] = exports.deepClone(obj[key], hash), _a); | ||
}; | ||
exports.deepClone = deepClone; |
@@ -0,1 +1,9 @@ | ||
## [1.11.4](https://github.com/open-rpc/typings/compare/1.11.3...1.11.4) (2021-06-01) | ||
### Bug Fixes | ||
* update schema dependencies to reflect meta-schema changes ([49014a5](https://github.com/open-rpc/typings/commit/49014a59a362194ddcc8ceccd10ff9df1da5f318)) | ||
* version bump to unblock semantic release ([529f50f](https://github.com/open-rpc/typings/commit/529f50f566531aa69622b8db50ce71ac1faf4f06)) | ||
## [1.11.3](https://github.com/open-rpc/typings/compare/1.11.2...1.11.3) (2020-11-17) | ||
@@ -2,0 +10,0 @@ |
{ | ||
"name": "@open-rpc/typings", | ||
"private": false, | ||
"version": "1.11.3", | ||
"version": "1.11.4", | ||
"description": "", | ||
"main": "build/index.js", | ||
"bin": { | ||
"open-rpc-typings": "./build/cli.js" | ||
"open-rpc-typings": "build/cli.js" | ||
}, | ||
@@ -32,11 +32,11 @@ "scripts": { | ||
"dependencies": { | ||
"@json-schema-tools/titleizer": "^1.0.4", | ||
"@json-schema-tools/transpiler": "^1.6.0", | ||
"@open-rpc/schema-utils-js": "^1.14.0", | ||
"@json-schema-tools/titleizer": "1.0.4", | ||
"@json-schema-tools/transpiler": "1.6.0", | ||
"@open-rpc/schema-utils-js": "1.15.0", | ||
"commander": "^6.0.0", | ||
"fs-extra": "^9.0.1" | ||
"fs-extra": "^10.0.0" | ||
}, | ||
"devDependencies": { | ||
"@open-rpc/examples": "^1.6.0", | ||
"@open-rpc/meta-schema": "^1.12.6", | ||
"@open-rpc/examples": "1.6.1", | ||
"@open-rpc/meta-schema": "1.14.2", | ||
"@types/commander": "^2.12.2", | ||
@@ -47,4 +47,5 @@ "@types/fs-extra": "^9.0.1", | ||
"ts-jest": "^26.1.4", | ||
"typescript": "^4.0.2" | ||
"typedoc": "0.20.36", | ||
"typescript": "4.2.4" | ||
} | ||
} |
@@ -18,3 +18,3 @@ # OpenRPC Typings | ||
Need help or have a question? Join us on [Discord](https://discord.gg/gREUKuF)! | ||
Need help or have a question? Join us on our [Discord](https://discord.gg/gREUKuF)! | ||
@@ -21,0 +21,0 @@ ## Installing |
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
47211
651
9
+ Added@json-schema-tools/dereferencer@1.5.1(transitive)
+ Added@json-schema-tools/meta-schema@1.7.5(transitive)
+ Added@json-schema-tools/reference-resolver@1.2.6(transitive)
+ Added@json-schema-tools/titleizer@1.0.4(transitive)
+ Added@json-schema-tools/transpiler@1.6.0(transitive)
+ Added@open-rpc/schema-utils-js@1.15.0(transitive)
- Removed@json-schema-tools/dereferencer@1.5.5(transitive)
- Removed@json-schema-tools/meta-schema@1.6.19(transitive)
- Removed@json-schema-tools/reference-resolver@1.2.4(transitive)
- Removed@json-schema-tools/titleizer@1.0.9(transitive)
- Removed@json-schema-tools/transpiler@1.10.5(transitive)
- Removed@open-rpc/schema-utils-js@1.16.2(transitive)
- Removedlodash.camelcase@4.3.0(transitive)
- Removedlodash.snakecase@4.1.1(transitive)
Updatedfs-extra@^10.0.0