@quiltt/core 3.6.13 → 3.6.14

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
  # @quiltt/core
2
2
 
3
+ ## 3.6.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [#278](https://github.com/quiltt/quiltt-js/pull/278) [`0d9e43d`](https://github.com/quiltt/quiltt-js/commit/0d9e43d580d73279d7c078219749b000ebb59b02) Thanks [@rubendinho](https://github.com/rubendinho)! - Fix debug config during CI
8
+
3
9
  ## 3.6.13
4
10
 
5
11
  ### Patch Changes
@@ -203,16 +203,13 @@ import { print } from 'graphql';
203
203
  */ const GlobalStorage = new Storage();
204
204
 
205
205
  var name = "@quiltt/core";
206
- var version$1 = "3.6.13";
206
+ var version$1 = "3.6.14";
207
207
 
208
208
  const QUILTT_API_INSECURE = (()=>{
209
209
  try {
210
- if (process.env.QUILTT_API_INSECURE === 'true' || process.env.QUILTT_API_INSECURE === 'false') {
211
- return process.env.QUILTT_API_INSECURE === 'true';
212
- }
213
- return process.env.QUILTT_API_INSECURE;
210
+ return process.env.QUILTT_API_INSECURE === 'true';
214
211
  } catch {
215
- return undefined;
212
+ return false;
216
213
  }
217
214
  })();
218
215
  const QUILTT_API_DOMAIN = (()=>{
@@ -224,7 +221,7 @@ const QUILTT_API_DOMAIN = (()=>{
224
221
  })();
225
222
  const QUILTT_DEBUG = (()=>{
226
223
  try {
227
- return !!process.env.QUILTT_DEBUG || process.env.NODE_ENV !== 'production';
224
+ return process.env.NODE_ENV !== 'production' && process.env.QUILTT_DEBUG === 'true';
228
225
  } catch {
229
226
  return false;
230
227
  }
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ApolloLink, ApolloClient } from '@apollo/client/index.js';
2
2
  export { InMemoryCache, gql, useMutation, useQuery, useSubscription } from '@apollo/client/index.js';
3
- import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-C-9ecaeZ.js';
4
- export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-C-9ecaeZ.js';
3
+ import { G as GlobalStorage, e as endpointGraphQL, v as version, d as debugging, S as SubscriptionLink, a as endpointAuth } from './SubscriptionLink-client-9B6w8jF6.js';
4
+ export { L as LocalStorage, M as MemoryStorage, O as Observable, b as Storage, c as cdnBase, f as endpointWebsockets } from './SubscriptionLink-client-9B6w8jF6.js';
5
5
  import { BatchHttpLink as BatchHttpLink$1 } from '@apollo/client/link/batch-http/index.js';
6
6
  import crossfetch from 'cross-fetch';
7
7
  import { onError } from '@apollo/client/link/error/index.js';
@@ -164,7 +164,7 @@ var AuthStrategies;
164
164
  AuthStrategies["Email"] = "email";
165
165
  AuthStrategies["Phone"] = "phone";
166
166
  })(AuthStrategies || (AuthStrategies = {}));
167
- // https://www.quiltt.dev/api-reference/rest/auth#
167
+ // https://www.quiltt.dev/api-reference/auth
168
168
  class AuthAPI {
169
169
  constructor(clientId){
170
170
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quiltt/core",
3
- "version": "3.6.13",
3
+ "version": "3.6.14",
4
4
  "description": "Javascript API client and utilities for Quiltt",
5
5
  "keywords": [
6
6
  "quiltt",
@@ -33,7 +33,7 @@ type Revoke = NoContentData | UnauthorizedData
33
33
  export type SessionResponse = FetchResponse<SessionData>
34
34
  export type UnprocessableResponse = FetchResponse<UnprocessableData>
35
35
 
36
- // https://www.quiltt.dev/api-reference/rest/auth#
36
+ // https://www.quiltt.dev/api-reference/auth
37
37
  export class AuthAPI {
38
38
  clientId: string | undefined
39
39
 
@@ -2,12 +2,9 @@ import { name as packageName, version as packageVersion } from '../package.json'
2
2
 
3
3
  const QUILTT_API_INSECURE = (() => {
4
4
  try {
5
- if (process.env.QUILTT_API_INSECURE === 'true' || process.env.QUILTT_API_INSECURE === 'false') {
6
- return process.env.QUILTT_API_INSECURE === 'true'
7
- }
8
- return process.env.QUILTT_API_INSECURE
5
+ return process.env.QUILTT_API_INSECURE === 'true'
9
6
  } catch {
10
- return undefined
7
+ return false
11
8
  }
12
9
  })()
13
10
 
@@ -21,7 +18,7 @@ const QUILTT_API_DOMAIN = (() => {
21
18
 
22
19
  const QUILTT_DEBUG = (() => {
23
20
  try {
24
- return !!process.env.QUILTT_DEBUG || process.env.NODE_ENV !== 'production'
21
+ return process.env.NODE_ENV !== 'production' && process.env.QUILTT_DEBUG === 'true'
25
22
  } catch {
26
23
  return false
27
24
  }