Initial Save
This commit is contained in:
6
node_modules/subscriptions-transport-ws/dist/utils/empty-iterable.d.ts
generated
vendored
Normal file
6
node_modules/subscriptions-transport-ws/dist/utils/empty-iterable.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import { $$asyncIterator } from 'iterall';
|
||||
declare type EmptyIterable = AsyncIterator<any> & {
|
||||
[$$asyncIterator]: any;
|
||||
};
|
||||
export declare const createEmptyIterable: () => EmptyIterable;
|
||||
export {};
|
||||
23
node_modules/subscriptions-transport-ws/dist/utils/empty-iterable.js
generated
vendored
Normal file
23
node_modules/subscriptions-transport-ws/dist/utils/empty-iterable.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.createEmptyIterable = void 0;
|
||||
var iterall_1 = require("iterall");
|
||||
exports.createEmptyIterable = function () {
|
||||
var _a;
|
||||
return _a = {
|
||||
next: function () {
|
||||
return Promise.resolve({ value: undefined, done: true });
|
||||
},
|
||||
return: function () {
|
||||
return Promise.resolve({ value: undefined, done: true });
|
||||
},
|
||||
throw: function (e) {
|
||||
return Promise.reject(e);
|
||||
}
|
||||
},
|
||||
_a[iterall_1.$$asyncIterator] = function () {
|
||||
return this;
|
||||
},
|
||||
_a;
|
||||
};
|
||||
//# sourceMappingURL=empty-iterable.js.map
|
||||
1
node_modules/subscriptions-transport-ws/dist/utils/empty-iterable.js.map
generated
vendored
Normal file
1
node_modules/subscriptions-transport-ws/dist/utils/empty-iterable.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"empty-iterable.js","sourceRoot":"","sources":["../../src/utils/empty-iterable.ts"],"names":[],"mappings":";;;AAAA,mCAA0C;AAI7B,QAAA,mBAAmB,GAAG;;IACjC,OAAO;YACL,IAAI;gBACF,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;YAC3D,CAAC;YACD,MAAM;gBACJ,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;YAC3D,CAAC;YACD,KAAK,EAAL,UAAM,CAAQ;gBACZ,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YAC3B,CAAC;;QACD,GAAC,yBAAe,IAAhB;YACE,OAAO,IAAI,CAAC;QACd,CAAC;UACK,CAAC;AACX,CAAC,CAAC","sourcesContent":["import { $$asyncIterator } from 'iterall';\n\ntype EmptyIterable = AsyncIterator<any> & { [$$asyncIterator]: any };\n\nexport const createEmptyIterable = (): EmptyIterable => {\n return {\n next() {\n return Promise.resolve({ value: undefined, done: true });\n },\n return() {\n return Promise.resolve({ value: undefined, done: true });\n },\n throw(e: Error) {\n return Promise.reject(e);\n },\n [$$asyncIterator]() {\n return this;\n },\n } as any;\n};\n"]}
|
||||
1
node_modules/subscriptions-transport-ws/dist/utils/is-object.d.ts
generated
vendored
Normal file
1
node_modules/subscriptions-transport-ws/dist/utils/is-object.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default function isObject(value?: any): boolean;
|
||||
7
node_modules/subscriptions-transport-ws/dist/utils/is-object.js
generated
vendored
Normal file
7
node_modules/subscriptions-transport-ws/dist/utils/is-object.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function isObject(value) {
|
||||
return ((value !== null) && (typeof value === 'object'));
|
||||
}
|
||||
exports.default = isObject;
|
||||
//# sourceMappingURL=is-object.js.map
|
||||
1
node_modules/subscriptions-transport-ws/dist/utils/is-object.js.map
generated
vendored
Normal file
1
node_modules/subscriptions-transport-ws/dist/utils/is-object.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"is-object.js","sourceRoot":"","sources":["../../src/utils/is-object.ts"],"names":[],"mappings":";;AAAA,SAAwB,QAAQ,CAAC,KAAW;IAC1C,OAAO,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC;AAC3D,CAAC;AAFD,2BAEC","sourcesContent":["export default function isObject(value?: any): boolean {\n return ((value !== null) && (typeof value === 'object'));\n}\n"]}
|
||||
1
node_modules/subscriptions-transport-ws/dist/utils/is-string.d.ts
generated
vendored
Normal file
1
node_modules/subscriptions-transport-ws/dist/utils/is-string.d.ts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export default function isString(value?: any): value is string;
|
||||
7
node_modules/subscriptions-transport-ws/dist/utils/is-string.js
generated
vendored
Normal file
7
node_modules/subscriptions-transport-ws/dist/utils/is-string.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function isString(value) {
|
||||
return typeof value === 'string';
|
||||
}
|
||||
exports.default = isString;
|
||||
//# sourceMappingURL=is-string.js.map
|
||||
1
node_modules/subscriptions-transport-ws/dist/utils/is-string.js.map
generated
vendored
Normal file
1
node_modules/subscriptions-transport-ws/dist/utils/is-string.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"is-string.js","sourceRoot":"","sources":["../../src/utils/is-string.ts"],"names":[],"mappings":";;AAAA,SAAwB,QAAQ,CAAC,KAAW;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC;AACnC,CAAC;AAFD,2BAEC","sourcesContent":["export default function isString(value?: any): value is string {\n return typeof value === 'string';\n}\n"]}
|
||||
2
node_modules/subscriptions-transport-ws/dist/utils/is-subscriptions.d.ts
generated
vendored
Normal file
2
node_modules/subscriptions-transport-ws/dist/utils/is-subscriptions.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import { DocumentNode } from 'graphql';
|
||||
export declare const isASubscriptionOperation: (document: DocumentNode, operationName: string) => boolean;
|
||||
9
node_modules/subscriptions-transport-ws/dist/utils/is-subscriptions.js
generated
vendored
Normal file
9
node_modules/subscriptions-transport-ws/dist/utils/is-subscriptions.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isASubscriptionOperation = void 0;
|
||||
var graphql_1 = require("graphql");
|
||||
exports.isASubscriptionOperation = function (document, operationName) {
|
||||
var operationAST = graphql_1.getOperationAST(document, operationName);
|
||||
return !!operationAST && operationAST.operation === 'subscription';
|
||||
};
|
||||
//# sourceMappingURL=is-subscriptions.js.map
|
||||
1
node_modules/subscriptions-transport-ws/dist/utils/is-subscriptions.js.map
generated
vendored
Normal file
1
node_modules/subscriptions-transport-ws/dist/utils/is-subscriptions.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"is-subscriptions.js","sourceRoot":"","sources":["../../src/utils/is-subscriptions.ts"],"names":[],"mappings":";;;AAAA,mCAAwD;AAE3C,QAAA,wBAAwB,GAAG,UAAC,QAAsB,EAAE,aAAqB;IACpF,IAAM,YAAY,GAAG,yBAAe,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IAE9D,OAAO,CAAC,CAAC,YAAY,IAAI,YAAY,CAAC,SAAS,KAAK,cAAc,CAAC;AACrE,CAAC,CAAC","sourcesContent":["import { DocumentNode, getOperationAST } from 'graphql';\n\nexport const isASubscriptionOperation = (document: DocumentNode, operationName: string): boolean => {\n const operationAST = getOperationAST(document, operationName);\n\n return !!operationAST && operationAST.operation === 'subscription';\n};\n"]}
|
||||
Reference in New Issue
Block a user