Comparing version 3.0.0-canary-20240501132243.4004a355aa6863214175dc366e75bb3b4138b9fd to 3.0.0-canary-20240501154404.c05f19d9fa02ace3ea3ed24777455e94fa8db3e9
@@ -77,3 +77,3 @@ 'use strict'; | ||
} | ||
const selectionsCacheKey = `${cachePolicy}/${operationName != null ? operationName : ""}`; | ||
const selectionsCacheKey = operationName != null ? operationName : ""; | ||
const pendingSelections = batching.addSelections( | ||
@@ -80,0 +80,0 @@ clientCache, |
{ | ||
"name": "gqty", | ||
"version": "3.0.0-canary-20240501132243.4004a355aa6863214175dc366e75bb3b4138b9fd", | ||
"version": "3.0.0-canary-20240501154404.c05f19d9fa02ace3ea3ed24777455e94fa8db3e9", | ||
"description": "gqty client without queries", | ||
@@ -32,4 +32,3 @@ "sideEffects": false, | ||
"object-hash": "^3.0.0", | ||
"p-defer": "^3.0.0", | ||
"p-lazy": "^3.1.0" | ||
"p-defer": "^3.0.0" | ||
}, | ||
@@ -36,0 +35,0 @@ "repository": { |
@@ -1,9 +0,1 @@ | ||
export type DeferredState = 'pending' | 'resolved' | 'rejected'; | ||
export type Deferred<T> = { | ||
promise: Promise<T>; | ||
resolve: (value: T) => void; | ||
reject: (error: unknown) => void; | ||
state: DeferredState; | ||
}; | ||
export declare const createDeferred: <T>() => Deferred<T>; | ||
export type DeferredIterator<T> = AsyncGenerator<T, void, unknown> & { | ||
@@ -10,0 +2,0 @@ send: (value: T) => void; |
@@ -5,26 +5,11 @@ 'use strict'; | ||
const createDeferred = () => { | ||
let resolve; | ||
let reject; | ||
let state = "pending"; | ||
const promise = new Promise((res, rej) => { | ||
resolve = (value) => { | ||
state = "resolved"; | ||
res(value); | ||
}; | ||
reject = (error) => { | ||
state = "rejected"; | ||
rej(error); | ||
}; | ||
}); | ||
return { | ||
promise, | ||
resolve, | ||
reject, | ||
state | ||
}; | ||
}; | ||
const createDeferred = require('p-defer'); | ||
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; } | ||
const createDeferred__default = /*#__PURE__*/_interopDefault(createDeferred); | ||
const asyncItDoneMessage = { done: true }; | ||
const createDeferredIterator = () => { | ||
let deferred = createDeferred(); | ||
let deferred = createDeferred__default["default"](); | ||
const events = []; | ||
@@ -46,3 +31,3 @@ const next = async () => { | ||
deferred == null ? void 0 : deferred.resolve(); | ||
deferred = createDeferred(); | ||
deferred = createDeferred__default["default"](); | ||
}, | ||
@@ -72,3 +57,2 @@ complete: () => { | ||
exports.createDeferred = createDeferred; | ||
exports.createDeferredIterator = createDeferredIterator; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13
279452
7989
- Removedp-lazy@^3.1.0
- Removedp-lazy@3.1.0(transitive)