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

fluxible-plugin-fetchr

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluxible-plugin-fetchr - npm Package Compare versions

Comparing version 0.3.9 to 0.3.10

2

CONTRIBUTING.md

@@ -6,3 +6,3 @@ Contributing Code to `fluxible-plugin-fetchr`

[BSD license]: https://github.com/yahoo/fluxible-plugin-fetchr/blob/master/LICENSE.md
[BSD license]: https://github.com/yahoo/fluxible/blob/master/LICENSE.md
[CLA]: https://yahoocla.herokuapp.com/

@@ -23,2 +23,6 @@ /**

* @param {Function} [options.contextPicker.POST] POST context picker
* @param {Function} [options.statsCollector] The function will be invoked with 2 arguments:
* the actionContext object, which is the action context provided by Fluxible;
* the stats object, which contains resource, operation, params (request params),
* statusCode, err, and time (elapsed time)
* @returns {FetchrPlugin}

@@ -63,3 +67,3 @@ */

var service = new Fetchr({
var fetchrOptions = {
req: contextOptions.req,

@@ -71,3 +75,9 @@ xhrPath: xhrPath,

contextPicker: options.contextPicker
});
};
if (typeof options.statsCollector === 'function') {
fetchrOptions.statsCollector = function collectFetcherStats(stats) {
options.statsCollector(actionContext, stats);
};
}
var service = new Fetchr(fetchrOptions);
actionContext.service = {

@@ -77,3 +87,3 @@ create: service.create.bind(service),

update: service.update.bind(service),
'delete': service.delete.bind(service),
'delete': service['delete'].bind(service),
constructGetXhrUri: function constructGetXhrUri(resource, params, config) {

@@ -80,0 +90,0 @@ config = config || {};

{
"name": "fluxible-plugin-fetchr",
"version": "0.3.9",
"version": "0.3.10",
"description": "A plugin for Fluxible applications to provide an isomorphic interface for RESTful services",

@@ -8,8 +8,8 @@ "main": "index.js",

"type": "git",
"url": "git://github.com/yahoo/fluxible-plugin-fetchr.git"
"url": "git://github.com/yahoo/fluxible.git"
},
"scripts": {
"test": "mocha tests/unit/ --recursive --reporter spec",
"cover": "istanbul cover --dir artifacts -- ./node_modules/mocha/bin/_mocha tests/unit/ --recursive --reporter spec",
"lint": "jshint"
"test": "../../node_modules/.bin/mocha tests/unit/ --recursive --compilers js:babel-register --reporter spec",
"cover": "../../node_modules/.bin/istanbul cover --dir artifacts -- ../../node_modules/.bin/_mocha tests/unit/ --recursive --compilers js:babel-register --reporter spec",
"lint": "../../node_modules/.bin/eslint lib/ tests/ utils/ index.js"
},

@@ -21,11 +21,4 @@ "dependencies": {

"devDependencies": {
"chai": "^2.0.0",
"coveralls": "^2.11.1",
"fluxible": "^0.2.2",
"grunt": "^0.4.5",
"istanbul": "^0.3.2",
"jshint": "^2.5.5",
"mocha": "^2.0.1",
"mockery": "^1.4.0",
"precommit-hook": "1.0.x"
"mockery": "^1.7.0",
"sinon": "^1.17.4"
},

@@ -36,4 +29,4 @@ "author": "Michael Ridgway <mridgway@yahoo-inc.com>",

{
"type": "BSD",
"url": "https://github.com/yahoo/fluxible-plugin-fetchr/blob/master/LICENSE.md"
"type": "BSD-3-Clause",
"url": "https://github.com/yahoo/fluxible/blob/master/LICENSE.md"
}

@@ -40,0 +33,0 @@ ],

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