apollo-link-ws
Advanced tools
Comparing version 0.3.0 to 0.3.2
@@ -1,2 +0,1 @@ | ||
"use strict"; | ||
var __extends = (this && this.__extends) || (function () { | ||
@@ -12,5 +11,4 @@ var extendStatics = Object.setPrototypeOf || | ||
})(); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var apollo_link_core_1 = require("apollo-link-core"); | ||
var subscriptions_transport_ws_1 = require("subscriptions-transport-ws"); | ||
import { ApolloLink, } from 'apollo-link-core'; | ||
import { SubscriptionClient } from 'subscriptions-transport-ws'; | ||
var WebSocketLink = (function (_super) { | ||
@@ -20,7 +18,7 @@ __extends(WebSocketLink, _super); | ||
var _this = _super.call(this) || this; | ||
if (paramsOrClient instanceof subscriptions_transport_ws_1.SubscriptionClient) { | ||
if (paramsOrClient instanceof SubscriptionClient) { | ||
_this.subscriptionClient = paramsOrClient; | ||
} | ||
else { | ||
_this.subscriptionClient = new subscriptions_transport_ws_1.SubscriptionClient(paramsOrClient.uri, paramsOrClient.options, paramsOrClient.webSocketImpl); | ||
_this.subscriptionClient = new SubscriptionClient(paramsOrClient.uri, paramsOrClient.options, paramsOrClient.webSocketImpl); | ||
} | ||
@@ -33,4 +31,4 @@ return _this; | ||
return WebSocketLink; | ||
}(apollo_link_core_1.ApolloLink)); | ||
exports.default = WebSocketLink; | ||
}(ApolloLink)); | ||
export default WebSocketLink; | ||
//# sourceMappingURL=webSocketLink.js.map |
{ | ||
"name": "apollo-link-ws", | ||
"version": "0.3.0", | ||
"version": "0.3.2", | ||
"description": "WebSocket transport layer for GraphQL", | ||
@@ -13,4 +13,6 @@ "author": "Evans Hauser <evanshauser@gmail.com>", | ||
"license": "MIT", | ||
"main": "./lib/webSocketLink.js", | ||
"typings": "./lib/webSocketLink.d.ts", | ||
"main": "./dist/src/bundle.umd.js", | ||
"module": "./dist/src/webSocketLink.js", | ||
"jsnext:main": "./dist/src/webSocketLink.js", | ||
"typings": "./dist/src/webSocketLink.d.ts", | ||
"repository": { | ||
@@ -25,16 +27,23 @@ "type": "git", | ||
"scripts": { | ||
"pretest": "npm run build", | ||
"pretest": "npm run build-test", | ||
"test": "npm run test-only --", | ||
"posttest": "npm run lint", | ||
"test-only": "mocha --reporter spec --full-trace dist/tests/tests.js", | ||
"test-watch": "mocha --reporter spec --full-trace dist/tests/tests.js --watch", | ||
"coverage": "istanbul cover ./node_modules/.bin/_mocha -- --reporter dot --full-trace dist/tests/tests.js", | ||
"postcoverage": "remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info", | ||
"lint": "tslint --type-check -p tsconfig.json src/*.ts && tslint --type-check -p tsconfig.json tests/*.ts", | ||
"test-watch": | ||
"mocha --reporter spec --full-trace dist/tests/tests.js --watch", | ||
"coverage": | ||
"istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot --full-trace dist/tests/tests.js", | ||
"postcoverage": | ||
"remap-istanbul --input coverage/coverage.json --type lcovonly --output coverage/lcov.info", | ||
"lint": | ||
"tslint --type-check -p tsconfig.test.json src/*.ts && tslint --type-check -p tsconfig.test.json tests/*.ts", | ||
"prebuild": "npm run clean:dist", | ||
"build": "tsc -p .", | ||
"postbuild": "cp -R ./dist/src/. ./lib", | ||
"build-test": "tsc -p tsconfig.test.json", | ||
"postbuild": "npm run bundle", | ||
"postbuild-test": "npm run bundle", | ||
"bundle": "rollup -c", | ||
"watch": "tsc -w -p .", | ||
"clean": "npm run clean:dist && npm run clean:coverage", | ||
"clean:dist": "rimraf dist/* && rimraf lib/*", | ||
"clean:dist": "rimraf dist/*", | ||
"clean:coverage": "rimraf coverage/*", | ||
@@ -44,26 +53,27 @@ "prepublishOnly": "npm run clean && npm run build" | ||
"dependencies": { | ||
"apollo-link-core": "^0.5.0", | ||
"apollo-link-core": "^0.5.2", | ||
"subscriptions-transport-ws": "^0.8.2" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.0.0", | ||
"@types/chai": "4.0.4", | ||
"@types/chai-as-promised": "0.0.31", | ||
"@types/graphql": "~0.10.2", | ||
"@types/mocha": "^2.2.31", | ||
"@types/sinon": "^2.3.2", | ||
"chai": "^4.0.2", | ||
"chai-as-promised": "^7.0.0", | ||
"fetch-mock": "^5.11.0", | ||
"graphql-tag": "^2.2.2", | ||
"infuse.js": "^2.0.2", | ||
"istanbul": "^0.4.4", | ||
"lodash": "^4.17.4", | ||
"mocha": "^3.2.0", | ||
"remap-istanbul": "^0.9.0", | ||
"rimraf": "^2.5.4", | ||
"sinon": "^2.3.4", | ||
"source-map-support": "^0.4.5", | ||
"tslint": "^5.0.0", | ||
"typescript": "^2.2.1" | ||
"@types/graphql": "0.10.2", | ||
"@types/mocha": "2.2.42", | ||
"@types/sinon": "2.3.3", | ||
"chai": "4.1.1", | ||
"chai-as-promised": "7.1.1", | ||
"fetch-mock": "5.12.2", | ||
"graphql-tag": "2.4.2", | ||
"infuse.js": "2.0.2", | ||
"istanbul": "0.4.5", | ||
"lodash": "4.17.4", | ||
"mocha": "3.5.0", | ||
"remap-istanbul": "0.9.5", | ||
"rimraf": "2.6.1", | ||
"rollup": "^0.45.2", | ||
"sinon": "3.2.0", | ||
"source-map-support": "0.4.16", | ||
"tslint": "5.7.0", | ||
"typescript": "2.5.1" | ||
} | ||
} |
{ | ||
"extends": "../../tsconfig", | ||
"compilerOptions": { | ||
"target": "es5", | ||
"lib": ["es6", "dom"], | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"removeComments": true, | ||
"sourceMap": true, | ||
"declaration": true, | ||
"rootDir": ".", | ||
"outDir": "dist", | ||
"noImplicitAny": false, | ||
"noUnusedParameters": false, | ||
"noUnusedLocals": true, | ||
"skipLibCheck": true | ||
"rootDir": "." | ||
}, | ||
"include": ["src/**/*.ts", "tests/**/*.ts"] | ||
"include": ["src/**/*.ts"] | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
14088
20
11
252
2
Updatedapollo-link-core@^0.5.2