Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

falcor-http-ws-datasource

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

falcor-http-ws-datasource - npm Package Compare versions

Comparing version 0.2.3 to 1.0.0-rc1

27

dist/falcor-http-ws-datasource.js

@@ -21,5 +21,5 @@ 'use strict';

var _synhapteinFalcorHttpDatasource = require('@synhaptein/falcor-http-datasource');
var _landrFalcorHttpDatasource = require('@landr/falcor-http-datasource');
var _synhapteinFalcorHttpDatasource2 = _interopRequireDefault(_synhapteinFalcorHttpDatasource);
var _landrFalcorHttpDatasource2 = _interopRequireDefault(_landrFalcorHttpDatasource);

@@ -34,6 +34,2 @@ var _uuid = require('uuid');

var _q = require('q');
var _q2 = _interopRequireDefault(_q);
var noop = function noop() {};

@@ -175,3 +171,3 @@

value: function onError() {
return _q2['default'].when(false);
return Promise.resolve(false);
}

@@ -244,3 +240,3 @@ }, {

return _q2['default'].all(needRetries).then(function (retries) {
return Promise.all(needRetries).then(function (retries) {
return retries.reduce(function (r, needRetry) {

@@ -252,3 +248,3 @@ return r || needRetry;

return _q2['default'].when(false);
return Promise.resolve(false);
}

@@ -263,3 +259,6 @@ }, {

var observable = Observable.create(function (observer) {
var validateNeedRetry = _q2['default'].defer();
var needRetryResolve = undefined;
var validateNeedRetry = new Promise(function (resolve) {
needRetryResolve = resolve;
});

@@ -274,3 +273,3 @@ res.subscribe(function (res) {

validateNeedRetry.resolve(needRetry);
needRetryResolve(needRetry);
});

@@ -285,6 +284,6 @@ }, function (err) {

validateNeedRetry.resolve(needRetry);
needRetryResolve(needRetry);
});
}, function () {
validateNeedRetry.promise.then(function (needRetry) {
validateNeedRetry.then(function (needRetry) {
if (!needRetry) {

@@ -358,5 +357,5 @@ _this4._finishedRequest();

return FalcorHttpPullWebSocketPushDataSource;
})(_synhapteinFalcorHttpDatasource2['default']);
})(_landrFalcorHttpDatasource2['default']);
exports['default'] = FalcorHttpPullWebSocketPushDataSource;
module.exports = exports['default'];
{
"name": "falcor-http-ws-datasource",
"version": "0.2.3",
"version": "1.0.0-rc1",
"description": "Falcor HTTP and WebSocket datasource",

@@ -19,6 +19,5 @@ "homepage": "",

"dependencies": {
"@synhaptein/falcor-http-datasource": "0.1.6",
"q": "1.4.1",
"socket.io-client": "1.5.0",
"uuid": "2.0.1"
"@landr/falcor-http-datasource": "^0.1.7",
"socket.io-client": "^2.2.0",
"uuid": "^3.3.2"
},

@@ -25,0 +24,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc