Socket
Socket
Sign inDemoInstall

graphql-ws

Package Overview
Dependencies
11
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.8 to 0.1.9

1

dist/client.js

@@ -270,2 +270,3 @@ "use strict";

return [{
name: 'FormatedError',
message: 'Unknown error',

@@ -272,0 +273,0 @@ originalError: errors,

2

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc