@open-rpc/typings 1.13.0 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -0
- package/build/generate-typings-file.d.ts +1 -1
- package/build/generator-interface.d.ts +1 -1
- package/build/index.d.ts +1 -1
- package/build/openrpc.fixture.d.ts +1 -1
- package/build/python.js +3 -3
- package/build/types.d.ts +5 -0
- package/build/types.js +2 -0
- package/build/utils.d.ts +1 -1
- package/package.json +8 -5
package/build/cli.js
CHANGED
|
@@ -43,6 +43,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
43
43
|
var commander_1 = __importDefault(require("commander"));
|
|
44
44
|
var schema_utils_js_1 = require("@open-rpc/schema-utils-js");
|
|
45
45
|
var generate_typings_file_1 = require("./generate-typings-file");
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
46
47
|
var version = require("../package.json").version; // tslint:disable-line
|
|
47
48
|
function makeOptions(fileName, dirName, lang) {
|
|
48
49
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenrpcDocument as OpenRPC, MethodObject } from "
|
|
1
|
+
import { OpenrpcDocument as OpenRPC, MethodObject } from "./types";
|
|
2
2
|
export type GetMethodTypings = (openrpcSchema: OpenRPC) => string;
|
|
3
3
|
export type GetParamsTypings = (openrpcSchema: OpenRPC) => string;
|
|
4
4
|
export type GetParamsTyping = (method: MethodObject, joinString?: string) => string;
|
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenrpcDocument as OpenRPC, MethodObject } from "
|
|
1
|
+
import { OpenrpcDocument as OpenRPC, MethodObject } from "./types";
|
|
2
2
|
export type OpenRPCTypingsSupportedLanguages = "rust" | "rs" | "typescript" | "ts" | "go" | "golang" | "py" | "python";
|
|
3
3
|
interface OpenRPCTypings {
|
|
4
4
|
schemas: string;
|
package/build/python.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getParamsTypings = exports.getParamsTyping = exports.getMethodAliasName = exports.getMethodTypings = void 0;
|
|
4
4
|
var utils_1 = require("@json-schema-tools/transpiler/build/utils");
|
|
5
|
-
var getMethodTyping = function (
|
|
5
|
+
var getMethodTyping = function (_method) {
|
|
6
6
|
return "";
|
|
7
7
|
};
|
|
8
8
|
var getMethodTypings = function (openrpcDocument) {
|
|
@@ -15,11 +15,11 @@ var getMethodAliasName = function (method) {
|
|
|
15
15
|
return (0, utils_1.languageSafeName)(method.name);
|
|
16
16
|
};
|
|
17
17
|
exports.getMethodAliasName = getMethodAliasName;
|
|
18
|
-
var getParamsTyping = function (
|
|
18
|
+
var getParamsTyping = function (_method) {
|
|
19
19
|
return "";
|
|
20
20
|
};
|
|
21
21
|
exports.getParamsTyping = getParamsTyping;
|
|
22
|
-
var getParamsTypings = function (
|
|
22
|
+
var getParamsTypings = function (_method) {
|
|
23
23
|
return "";
|
|
24
24
|
};
|
|
25
25
|
exports.getParamsTypings = getParamsTypings;
|
package/build/types.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { V1_3, V1_4 } from "@open-rpc/spec-types";
|
|
2
|
+
export type OpenrpcDocument = V1_3.OpenrpcDocument | V1_4.OpenrpcDocument;
|
|
3
|
+
export type MethodObject = V1_3.MethodObject | V1_4.MethodObject;
|
|
4
|
+
export type JSONSchema = V1_3.JSONSchema | V1_4.JSONSchema;
|
|
5
|
+
export type ContentDescriptorObject = V1_3.ContentDescriptorObject | V1_4.ContentDescriptorObject;
|
package/build/types.js
ADDED
package/build/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSONSchema, OpenrpcDocument } from "
|
|
1
|
+
import { JSONSchema, OpenrpcDocument } from "./types";
|
|
2
2
|
export declare const flatten: (arr: any[]) => any[];
|
|
3
3
|
export declare const getSchemasForOpenRPCDocument: (openrpcDocument: OpenrpcDocument) => JSONSchema[];
|
|
4
4
|
export declare const deepClone: (obj: any, hash?: WeakMap<object, any>) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-rpc/typings",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.13.
|
|
4
|
+
"version": "1.13.1",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "build/index.js",
|
|
7
7
|
"bin": {
|
|
@@ -31,19 +31,22 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@json-schema-tools/titleizer": "1.0.9",
|
|
33
33
|
"@json-schema-tools/transpiler": "^1.10.5",
|
|
34
|
-
"@open-rpc/schema-utils-js": "2.
|
|
34
|
+
"@open-rpc/schema-utils-js": "2.2.1",
|
|
35
35
|
"commander": "^6.0.0",
|
|
36
36
|
"fs-extra": "^10.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
+
"eslint": "^8.57.0",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
41
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
39
42
|
"@open-rpc/examples": "1.7.2",
|
|
40
|
-
"@open-rpc/
|
|
43
|
+
"@open-rpc/spec-types": "0.0.2",
|
|
41
44
|
"@types/commander": "^2.12.2",
|
|
42
45
|
"@types/fs-extra": "^9.0.1",
|
|
43
46
|
"@types/jest": "^29.5.12",
|
|
44
47
|
"jest": "^29.1.2",
|
|
45
|
-
"ts-jest": "
|
|
48
|
+
"ts-jest": "29.4.6",
|
|
46
49
|
"typedoc": "0.25.13",
|
|
47
|
-
"typescript": "4.
|
|
50
|
+
"typescript": "5.4.5"
|
|
48
51
|
}
|
|
49
52
|
}
|