@0xsequence/api 3.0.0-beta.18 → 3.0.0-beta.19

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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from './api.gen';
2
- import { API as ApiRpc } from './api.gen';
1
+ export * from './api.gen.js';
2
+ import { API as ApiRpc } from './api.gen.js';
3
3
  export declare class SequenceAPIClient extends ApiRpc {
4
4
  projectAccessKey?: string | undefined;
5
5
  jwtAuth?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,MAAM,WAAW,CAAA;AAEzC,qBAAa,iBAAkB,SAAQ,MAAM;IAGlC,gBAAgB,CAAC,EAAE,MAAM;IACzB,OAAO,CAAC,EAAE,MAAM;gBAFvB,QAAQ,EAAE,MAAM,EACT,gBAAgB,CAAC,EAAE,MAAM,YAAA,EACzB,OAAO,CAAC,EAAE,MAAM,YAAA;IAMzB,MAAM,GAAI,OAAO,WAAW,EAAE,OAAO,WAAW,KAAG,OAAO,CAAC,QAAQ,CAAC,CAoBnE;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAE5B,OAAO,EAAE,GAAG,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAE5C,qBAAa,iBAAkB,SAAQ,MAAM;IAGlC,gBAAgB,CAAC,EAAE,MAAM;IACzB,OAAO,CAAC,EAAE,MAAM;gBAFvB,QAAQ,EAAE,MAAM,EACT,gBAAgB,CAAC,EAAE,MAAM,YAAA,EACzB,OAAO,CAAC,EAAE,MAAM,YAAA;IAMzB,MAAM,GAAI,OAAO,WAAW,EAAE,OAAO,WAAW,KAAG,OAAO,CAAC,QAAQ,CAAC,CAoBnE;CACF"}
package/dist/index.js CHANGED
@@ -1,23 +1,6 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.SequenceAPIClient = void 0;
18
- __exportStar(require("./api.gen"), exports);
19
- const api_gen_1 = require("./api.gen");
20
- class SequenceAPIClient extends api_gen_1.API {
1
+ export * from './api.gen.js';
2
+ import { API as ApiRpc } from './api.gen.js';
3
+ export class SequenceAPIClient extends ApiRpc {
21
4
  projectAccessKey;
22
5
  jwtAuth;
23
6
  constructor(hostname, projectAccessKey, jwtAuth) {
@@ -43,4 +26,3 @@ class SequenceAPIClient extends api_gen_1.API {
43
26
  return fetch(input, init);
44
27
  };
45
28
  }
46
- exports.SequenceAPIClient = SequenceAPIClient;
@@ -0,0 +1,4 @@
1
+ import { config as baseConfig } from "@repo/eslint-config/base"
2
+
3
+ /** @type {import("eslint").Linter.Config} */
4
+ export default baseConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xsequence/api",
3
- "version": "3.0.0-beta.18",
3
+ "version": "3.0.0-beta.19",
4
4
  "description": "api sub-package for Sequence",
5
5
  "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/services/api",
6
6
  "author": "Sequence Platforms ULC",
@@ -8,6 +8,7 @@
8
8
  "publishConfig": {
9
9
  "access": "public"
10
10
  },
11
+ "type": "module",
11
12
  "exports": {
12
13
  ".": {
13
14
  "types": "./dist/index.d.ts",
@@ -15,14 +16,16 @@
15
16
  }
16
17
  },
17
18
  "devDependencies": {
18
- "@types/node": "^25.0.2",
19
+ "@types/node": "^25.3.0",
19
20
  "typescript": "^5.9.3",
20
- "@repo/typescript-config": "^0.0.1-beta.1"
21
+ "@repo/typescript-config": "^0.0.1-beta.1",
22
+ "@repo/eslint-config": "^0.0.1-beta.1"
21
23
  },
22
24
  "scripts": {
23
25
  "build": "tsc",
24
26
  "dev": "tsc --watch",
25
27
  "test": "echo",
26
- "typecheck": "tsc --noEmit"
28
+ "typecheck": "tsc --noEmit",
29
+ "lint": "eslint . --max-warnings 0"
27
30
  }
28
31
  }
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from './api.gen'
1
+ export * from './api.gen.js'
2
2
 
3
- import { API as ApiRpc } from './api.gen'
3
+ import { API as ApiRpc } from './api.gen.js'
4
4
 
5
5
  export class SequenceAPIClient extends ApiRpc {
6
6
  constructor(
@@ -15,7 +15,7 @@ export class SequenceAPIClient extends ApiRpc {
15
15
  _fetch = (input: RequestInfo, init?: RequestInit): Promise<Response> => {
16
16
  // automatically include jwt and access key auth header to requests
17
17
  // if its been set on the api client
18
- const headers: { [key: string]: any } = {}
18
+ const headers: Record<string, string> = {}
19
19
 
20
20
  const jwtAuth = this.jwtAuth
21
21
  const projectAccessKey = this.projectAccessKey