Comparing version 1.5.2 to 1.5.3
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
85
222914
5846
2
3
+ Addedlolex@5.1.2(transitive)
- Removedlolex@4.2.0(transitive)
Updatedlolex@^5.0.1