graphql-ws
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -270,2 +270,3 @@ "use strict"; | ||
return [{ | ||
name: 'FormatedError', | ||
message: 'Unknown error', | ||
@@ -272,0 +273,0 @@ originalError: errors, |
@@ -5,3 +5,3 @@ export * from './client'; | ||
export * from './protocol'; | ||
export * from './types/BinaryType'; | ||
export { default as GraphQLBinary } from './types/BinaryType'; | ||
export * from './Binary'; |
@@ -10,4 +10,5 @@ "use strict"; | ||
__export(require("./protocol")); | ||
__export(require("./types/BinaryType")); | ||
var BinaryType_1 = require("./types/BinaryType"); | ||
exports.GraphQLBinary = BinaryType_1.default; | ||
__export(require("./Binary")); | ||
//# sourceMappingURL=index.js.map |
import { GraphQLScalarType } from 'graphql'; | ||
declare const GraphQLBinary: { | ||
readonly schema: string; | ||
readonly resolvers: { | ||
Binary: GraphQLScalarType; | ||
}; | ||
}; | ||
export { GraphQLBinary }; | ||
declare const _default: GraphQLScalarType; | ||
export default _default; |
@@ -5,29 +5,15 @@ "use strict"; | ||
const Binary_1 = require("../Binary"); | ||
const schema = ` | ||
scalar Binary | ||
`; | ||
const resolvers = { | ||
Binary: new graphql_1.GraphQLScalarType({ | ||
name: 'Binary', | ||
description: 'File transfer type', | ||
serialize(value) { | ||
return (value instanceof Binary_1.Binary) ? value : null; | ||
}, | ||
parseValue(value) { | ||
return (value instanceof Binary_1.Binary) ? value : null; | ||
}, | ||
parseLiteral(ast) { | ||
return null; | ||
}, | ||
}), | ||
}; | ||
const GraphQLBinary = { | ||
get schema() { | ||
return schema; | ||
exports.default = new graphql_1.GraphQLScalarType({ | ||
name: 'Binary', | ||
description: 'File transfer type', | ||
serialize(value) { | ||
return (value instanceof Binary_1.Binary) ? value : null; | ||
}, | ||
get resolvers() { | ||
return resolvers; | ||
parseValue(value) { | ||
return (value instanceof Binary_1.Binary) ? value : null; | ||
}, | ||
}; | ||
exports.GraphQLBinary = GraphQLBinary; | ||
parseLiteral(ast) { | ||
return null; | ||
}, | ||
}); | ||
//# sourceMappingURL=BinaryType.js.map |
{ | ||
"name": "graphql-ws", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "WebSocket transport for GraphQL", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
499671
10546