@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 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,5 +1,5 @@
1
1
  import { OpenRPCTypingsSupportedLanguages } from "./";
2
- import { OpenrpcDocument as OpenRPC } from "@open-rpc/meta-schema";
2
+ import { OpenrpcDocument as OpenRPC } from "./types";
3
3
  export interface TypingsOptions {
4
4
  fileName: string;
5
5
  dirName: string;
@@ -1,4 +1,4 @@
1
- import { OpenrpcDocument as OpenRPC, MethodObject } from "@open-rpc/meta-schema";
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 "@open-rpc/meta-schema";
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;
@@ -1,3 +1,3 @@
1
- import { OpenrpcDocument as OpenRPC } from "@open-rpc/meta-schema";
1
+ import { OpenrpcDocument as OpenRPC } from "./types";
2
2
  declare const testOpenRPCDocument: OpenRPC;
3
3
  export default testOpenRPCDocument;
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 (method) {
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 (method) {
18
+ var getParamsTyping = function (_method) {
19
19
  return "";
20
20
  };
21
21
  exports.getParamsTyping = getParamsTyping;
22
- var getParamsTypings = function (method) {
22
+ var getParamsTypings = function (_method) {
23
23
  return "";
24
24
  };
25
25
  exports.getParamsTypings = getParamsTypings;
@@ -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
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/build/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { JSONSchema, OpenrpcDocument } from "@open-rpc/meta-schema";
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.0",
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.0.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/meta-schema": "1.14.9",
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": "^29.1.2",
48
+ "ts-jest": "29.4.6",
46
49
  "typedoc": "0.25.13",
47
- "typescript": "4.9.5"
50
+ "typescript": "5.4.5"
48
51
  }
49
52
  }