falcor-http-ws-datasource
Advanced tools
Comparing version 0.2.3 to 1.0.0-rc1
@@ -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": { |
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
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
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
3
336
0
16771
+ Added@landr/falcor-http-datasource@0.1.7(transitive)
+ Addedafter@0.8.2(transitive)
+ Addedarraybuffer.slice@0.0.7(transitive)
+ Addedbase64-arraybuffer@0.1.4(transitive)
+ Addedblob@0.0.5(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addeddebug@3.1.0(transitive)
+ Addedengine.io-client@3.5.4(transitive)
+ Addedengine.io-parser@2.2.1(transitive)
+ Addedhas-binary2@1.0.3(transitive)
+ Addedisarray@2.0.1(transitive)
+ Addedms@2.0.0(transitive)
+ Addedparseqs@0.0.6(transitive)
+ Addedparseuri@0.0.6(transitive)
+ Addedsocket.io-client@2.5.0(transitive)
+ Addedsocket.io-parser@3.3.4(transitive)
+ Addeduuid@3.4.0(transitive)
+ Addedws@7.5.10(transitive)
+ Addedxmlhttprequest-ssl@1.6.3(transitive)
- Removedq@1.4.1
- Removed@synhaptein/falcor-http-datasource@0.1.6(transitive)
- Removedafter@0.8.1(transitive)
- Removedarraybuffer.slice@0.0.6(transitive)
- Removedbase64-arraybuffer@0.1.5(transitive)
- Removedbenchmark@1.0.0(transitive)
- Removedbetter-assert@1.0.2(transitive)
- Removedblob@0.0.4(transitive)
- Removedcallsite@1.0.0(transitive)
- Removedcomponent-emitter@1.1.21.2.0(transitive)
- Removeddebug@2.2.0(transitive)
- Removedengine.io-client@1.7.0(transitive)
- Removedengine.io-parser@1.3.0(transitive)
- Removedhas-binary@0.1.60.1.7(transitive)
- Removedisarray@0.0.1(transitive)
- Removedjson3@3.3.2(transitive)
- Removedms@0.7.1(transitive)
- Removedobject-component@0.0.3(transitive)
- Removedoptions@0.0.6(transitive)
- Removedparsejson@0.0.1(transitive)
- Removedparseqs@0.0.2(transitive)
- Removedparseuri@0.0.4(transitive)
- Removedq@1.4.1(transitive)
- Removedsocket.io-client@1.5.0(transitive)
- Removedsocket.io-parser@2.2.6(transitive)
- Removedultron@1.0.2(transitive)
- Removeduuid@2.0.1(transitive)
- Removedws@1.1.1(transitive)
- Removedwtf-8@1.0.0(transitive)
- Removedxmlhttprequest-ssl@1.5.1(transitive)
Updatedsocket.io-client@^2.2.0
Updateduuid@^3.3.2