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

can-fixture

Package Overview
Dependencies
Maintainers
12
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

can-fixture - npm Package Compare versions

Comparing version 2.0.3 to 2.1.0

1

build.js

@@ -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;

7

core.js

@@ -0,1 +1,2 @@

"use strict";
// Adds

@@ -181,4 +182,6 @@ var canSet = require("can-set");

//!steal-remove-start
var json = JSON.stringify(xhrSettings.data);
canLog.log("" + xhrSettings.type.toUpperCase() + " " + xhrSettings.url+" "+json.substr(0,50)+" -> handler(req,res)");
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

@@ -185,0 +188,0 @@

@@ -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) {

@@ -0,1 +1,2 @@

"use strict";
var getId = require("./getid");

@@ -2,0 +3,0 @@ var canSet = require("can-set");

{
"name": "can-fixture",
"version": "2.0.3",
"version": "2.1.0",
"description": "Intercept AJAX requests and simulate responses.",

@@ -35,3 +35,3 @@ "main": "fixture.js",

"steal-tools": "^1.0.0",
"testee": "^0.7.0"
"testee": "^0.8.0"
},

@@ -38,0 +38,0 @@ "repository": {

@@ -0,1 +1,2 @@

"use strict";
var canSet = require("can-set");

@@ -2,0 +3,0 @@ var connect = require("can-connect");

@@ -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

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