can-fixture
Advanced tools
Comparing version 3.0.0-pre.11 to 3.0.0
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var stealTools = require("steal-tools"); | ||
@@ -2,0 +3,0 @@ var globalJS = require("steal-tools/lib/build/helpers/global").js; |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
// Adds | ||
@@ -186,2 +187,9 @@ var sub = require("can-key/sub/sub"); | ||
//!steal-remove-start | ||
if(process.env.NODE_ENV !== 'production') { | ||
var json = JSON.stringify(xhrSettings.data); | ||
canLog.log("" + xhrSettings.type.toUpperCase() + " " + xhrSettings.url+" "+json.substr(0,50)+" -> handler(req,res)"); | ||
} | ||
//!steal-remove-end | ||
var response = function(){ | ||
@@ -188,0 +196,0 @@ var res = exports.extractResponse.apply(xhrSettings, arguments); |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
var core = require("./core"); | ||
@@ -2,0 +3,0 @@ var fixture = core.add; |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
// Attemps to guess where the id is in an AJAX call's URL and returns it. | ||
@@ -2,0 +3,0 @@ module.exports = function (xhrSettings, fixtureSettings) { |
{ | ||
"name": "can-fixture", | ||
"version": "3.0.0-pre.11", | ||
"version": "3.0.0", | ||
"description": "Intercept AJAX requests and simulate responses.", | ||
@@ -36,3 +36,3 @@ "main": "fixture.js", | ||
"steal-tools": "^1.0.0", | ||
"testee": "^0.7.0" | ||
"testee": "^0.8.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "repository": { |
@@ -0,1 +1,2 @@ | ||
"use strict"; | ||
/* global require, window, global */ | ||
@@ -2,0 +3,0 @@ /* global setTimeout, clearTimeout, XMLHttpRequest */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
119007
52
3128
0
1