@lightsparkdev/core 0.3.9 → 0.3.10

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @lightsparkdev/core
2
2
 
3
+ ## 0.3.10
4
+
5
+ ### Patch Changes
6
+
7
+ - 141d73a: Enable/fix consistent-type-imports lint rule
8
+
3
9
  ## 0.3.9
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsparkdev/core",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "description": "Lightspark JS SDK",
5
5
  "author": "Lightspark Inc.",
6
6
  "keywords": [
@@ -1,9 +1,7 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
- import AuthProvider, {
4
- type Headers,
5
- type WsConnectionParams,
6
- } from "./AuthProvider.js";
3
+ import type AuthProvider from "./AuthProvider.js";
4
+ import { type Headers, type WsConnectionParams } from "./AuthProvider.js";
7
5
 
8
6
  export default class StubAuthProvider implements AuthProvider {
9
7
  async addAuthHeaders(headers: Headers) {
@@ -3,8 +3,9 @@
3
3
  import autoBind from "auto-bind";
4
4
 
5
5
  import { b64decode } from "../utils/base64.js";
6
- import { CryptoInterface, DefaultCrypto } from "./crypto.js";
7
- import { KeyOrAliasType } from "./KeyOrAlias.js";
6
+ import type { CryptoInterface } from "./crypto.js";
7
+ import { DefaultCrypto } from "./crypto.js";
8
+ import type { KeyOrAliasType } from "./KeyOrAlias.js";
8
9
 
9
10
  class NodeKeyCache {
10
11
  private idToKey: Map<string, CryptoKey | string>;
@@ -3,20 +3,18 @@
3
3
  import autoBind from "auto-bind";
4
4
  import dayjs from "dayjs";
5
5
  import utc from "dayjs/plugin/utc.js";
6
- import { Client as WsClient, createClient } from "graphql-ws";
6
+ import type { Client as WsClient } from "graphql-ws";
7
+ import { createClient } from "graphql-ws";
7
8
  import NodeWebSocket from "ws";
8
9
  import { Observable } from "zen-observable-ts";
9
10
 
10
- import Query from "./Query.js";
11
+ import type Query from "./Query.js";
11
12
 
12
- import AuthProvider from "../auth/AuthProvider.js";
13
+ import type AuthProvider from "../auth/AuthProvider.js";
13
14
  import StubAuthProvider from "../auth/StubAuthProvider.js";
14
- import {
15
- CryptoInterface,
16
- DefaultCrypto,
17
- LightsparkSigningException,
18
- } from "../crypto/crypto.js";
19
- import NodeKeyCache from "../crypto/NodeKeyCache.js";
15
+ import type { CryptoInterface } from "../crypto/crypto.js";
16
+ import { DefaultCrypto, LightsparkSigningException } from "../crypto/crypto.js";
17
+ import type NodeKeyCache from "../crypto/NodeKeyCache.js";
20
18
  import LightsparkException from "../LightsparkException.js";
21
19
  import { b64encode } from "../utils/base64.js";
22
20
  import { isNode } from "../utils/environment.js";