Socket
Socket
Sign inDemoInstall

nise

Package Overview
Dependencies
Maintainers
4
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nise - npm Package Compare versions

Comparing version 1.5.2 to 1.5.3

11

lib/fake-xhr/index.js
"use strict";
var TextEncoder = require("@sinonjs/text-encoding").TextEncoder;
var GlobalTextEncoder = typeof TextEncoder !== "undefined"
? TextEncoder
: require("@sinonjs/text-encoding").TextEncoder;

@@ -122,3 +124,3 @@ var configureLogError = require("../configure-logger");

return new TextEncoder(encoding || "utf-8").encode(body).buffer;
return new GlobalTextEncoder(encoding || "utf-8").encode(body).buffer;
}

@@ -781,2 +783,5 @@

module.exports = extend(fakeXMLHttpRequestFor(global), { fakeXMLHttpRequestFor: fakeXMLHttpRequestFor });
var globalObject = typeof global !== "undefined" ? global : window;
module.exports = extend(fakeXMLHttpRequestFor(globalObject), {
fakeXMLHttpRequestFor: fakeXMLHttpRequestFor
});
{
"name": "nise",
"version": "1.5.2",
"version": "1.5.3",
"description": "Fake XHR and server",

@@ -20,3 +20,3 @@ "keywords": [

"scripts": {
"bundle": "browserify -s nise -o nise.js lib/index.js",
"bundle": "browserify --no-detect-globals -s nise -o nise.js lib/index.js",
"lint": "eslint .",

@@ -27,4 +27,9 @@ "prepublish": "npm run bundle",

"test:coverage": "nyc --reporter=lcov --reporter=text --all npm test -- --reporter dot",
"test:headless": "mochify --https-server --plugin [ proxyquire-universal ] lib/**/*.test.js"
"test:headless": "mochify --https-server --plugin [ proxyquire-universal ] --no-detect-globals test/global-hack.js lib/**/*.test.js"
},
"browser": {
"jsdom": false,
"jsdom-global": false,
"@sinonjs/text-encoding": false
},
"author": "",

@@ -44,3 +49,3 @@ "license": "BSD-3-Clause",

"devDependencies": {
"@sinonjs/referee": "^2.0.0",
"@sinonjs/referee": "^3.2.0",
"browserify": "^16.2.3",

@@ -50,11 +55,11 @@ "eslint": "^6.1.0",

"eslint-plugin-ie11": "1.0.0",
"eslint-plugin-mocha": "^4.9.0",
"husky": "^2.3.0",
"eslint-plugin-mocha": "^6.1.1",
"husky": "^3.0.7",
"jsdom": "^15.1.1",
"jsdom-global": "3.0.2",
"mocha": "^6.2.0",
"mochify": "^6.3.0",
"mochify": "^6.6.0",
"nyc": "^14.1.1",
"proxyquire": "^1.8.0",
"proxyquire-universal": "^1.0.8",
"proxyquire-universal": "^2.1.0",
"proxyquireify": "^3.2.1",

@@ -67,3 +72,3 @@ "sinon": "^7.3.2"

"just-extend": "^4.0.2",
"lolex": "^4.1.0",
"lolex": "^5.0.1",
"path-to-regexp": "^1.7.0"

@@ -70,0 +75,0 @@ },

@@ -1,3 +0,7 @@

# nise (偽) [![npm version](https://img.shields.io/npm/v/nise.svg?style=flat)](https://www.npmjs.com/package/nise) [![Build Status](https://travis-ci.org/sinonjs/nise.svg?branch=master)](https://travis-ci.org/sinonjs/nise)
# nise (偽)
[![npm version](https://img.shields.io/npm/v/nise.svg?style=flat)](https://www.npmjs.com/package/nise)
[![CircleCI](https://circleci.com/gh/sinonjs/nise.svg?style=svg)](https://circleci.com/gh/sinonjs/nise)
[![codecov](https://codecov.io/gh/sinonjs/nise/branch/master/graph/badge.svg)](https://codecov.io/gh/sinonjs/nise)
fake XHR and Server

@@ -4,0 +8,0 @@

Sorry, the diff of this file is too big to display

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