falcor-http-ws-datasource
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -123,2 +123,11 @@ 'use strict'; | ||
}, { | ||
key: '_readFeatureFlags', | ||
value: function _readFeatureFlags() { | ||
if (this.config.dynamicHeaders) { | ||
return this.config.dynamicHeaders()['X-LANDR-FEATUREFLAGS']; | ||
} | ||
return null; | ||
} | ||
}, { | ||
key: 'startWS', | ||
@@ -138,3 +147,7 @@ value: function startWS() { | ||
this.socket.on('connect', function () { | ||
_this.socket.emit('authorization', { bearerToken: _this._readBearerTokenFromDynamicHeaders(), tabId: _this.tabId }); | ||
_this.socket.emit('authorization', { | ||
bearerToken: _this._readBearerTokenFromDynamicHeaders(), | ||
tabId: _this.tabId, | ||
featureFlags: _this._readFeatureFlags() | ||
}); | ||
}); | ||
@@ -141,0 +154,0 @@ |
{ | ||
"name": "falcor-http-ws-datasource", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Falcor HTTP and WebSocket datasource", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
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
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
16815
5
335
1
28
1