New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@instructure/ui-test-sandbox

Package Overview
Dependencies
Maintainers
35
Versions
1235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@instructure/ui-test-sandbox - npm Package Compare versions

Comparing version 6.16.1-rc.43 to 6.16.1-rc.44

21

es/utils/sandbox.js

@@ -42,3 +42,3 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";

// eslint-disable-next-line no-console
console.info('[ui-test-utils] Initializing test sandbox...');
console.info('[ui-test-sandbox] Initializing test sandbox...');

@@ -51,3 +51,3 @@ try {

} catch (e) {
console.warn("[ui-test-utils] error initializing test sandbox: ".concat(e));
console.warn("[ui-test-sandbox] error initializing test sandbox: ".concat(e));
}

@@ -246,3 +246,3 @@ }

if (!this._sandbox) {
throw new Error('[ui-test-utils] a stub cannot be created outside an `it`, `before`, or `beforeEach` block.');
throw new Error('[ui-test-sandbox] a stub cannot be created outside an `it`, `before`, or `beforeEach` block.');
}

@@ -260,3 +260,3 @@

if (!this._sandbox) {
throw new Error('[ui-test-utils] a spy cannot be created outside an `it`, `before`, or `beforeEach` block.');
throw new Error('[ui-test-sandbox] a spy cannot be created outside an `it`, `before`, or `beforeEach` block.');
}

@@ -280,3 +280,3 @@

if (!global.viewport) {
console.error('[ui-test-utils] the `viewport` global has not been configured. See https://github.com/squidfunk/karma-viewport.');
console.error('[ui-test-sandbox] the `viewport` global has not been configured. See https://github.com/squidfunk/karma-viewport.');
}

@@ -353,13 +353,6 @@

}
}
} // only allow one Sandbox instance
var sandbox = {}; // Don't initialize sandbox for development or production
var ENV = process.env.NODE_ENV;
if (ENV !== 'development' && ENV !== 'production') {
// only allow one Sandbox instance
sandbox = global.sandbox = global.sandbox || new Sandbox();
}
var sandbox = global.sandbox = global.sandbox || new Sandbox();
var viewport = sandbox.viewport;

@@ -366,0 +359,0 @@

@@ -57,3 +57,3 @@ "use strict";

// eslint-disable-next-line no-console
console.info('[ui-test-utils] Initializing test sandbox...');
console.info('[ui-test-sandbox] Initializing test sandbox...');

@@ -66,3 +66,3 @@ try {

} catch (e) {
console.warn("[ui-test-utils] error initializing test sandbox: ".concat(e));
console.warn("[ui-test-sandbox] error initializing test sandbox: ".concat(e));
}

@@ -261,3 +261,3 @@ }

if (!this._sandbox) {
throw new Error('[ui-test-utils] a stub cannot be created outside an `it`, `before`, or `beforeEach` block.');
throw new Error('[ui-test-sandbox] a stub cannot be created outside an `it`, `before`, or `beforeEach` block.');
}

@@ -275,3 +275,3 @@

if (!this._sandbox) {
throw new Error('[ui-test-utils] a spy cannot be created outside an `it`, `before`, or `beforeEach` block.');
throw new Error('[ui-test-sandbox] a spy cannot be created outside an `it`, `before`, or `beforeEach` block.');
}

@@ -295,3 +295,3 @@

if (!global.viewport) {
console.error('[ui-test-utils] the `viewport` global has not been configured. See https://github.com/squidfunk/karma-viewport.');
console.error('[ui-test-sandbox] the `viewport` global has not been configured. See https://github.com/squidfunk/karma-viewport.');
}

@@ -366,13 +366,6 @@

}
}
} // only allow one Sandbox instance
var sandbox = {}; // Don't initialize sandbox for development or production
var ENV = process.env.NODE_ENV;
if (ENV !== 'development' && ENV !== 'production') {
// only allow one Sandbox instance
sandbox = global.sandbox = global.sandbox || new Sandbox();
}
var sandbox = global.sandbox = global.sandbox || new Sandbox();
var viewport = sandbox.viewport;

@@ -379,0 +372,0 @@ exports.viewport = viewport;

{
"name": "@instructure/ui-test-sandbox",
"version": "6.16.1-rc.43+0bdd16bff",
"version": "6.16.1-rc.44+8bd773373",
"description": "A wrapper for sinon test sandbox and associated utilities.",

@@ -29,3 +29,3 @@ "author": "Instructure, Inc. Engineering and Product Design",

"devDependencies": {
"@instructure/ui-babel-preset": "6.16.1-rc.43+0bdd16bff",
"@instructure/ui-babel-preset": "6.16.1-rc.44+8bd773373",
"prop-types": "^15.6.2"

@@ -41,3 +41,3 @@ },

"sideEffects": false,
"gitHead": "0bdd16bff2de2f17598843bf93e32f7780088855"
"gitHead": "8bd773373393ea8ac93fba03daa07dc44c6ecdf6"
}

@@ -34,3 +34,3 @@ /*

// eslint-disable-next-line no-console
console.info('[ui-test-utils] Initializing test sandbox...')
console.info('[ui-test-sandbox] Initializing test sandbox...')
try {

@@ -42,3 +42,3 @@ // global Mocha (or Jest?) hooks

} catch (e) {
console.warn(`[ui-test-utils] error initializing test sandbox: ${e}`)
console.warn(`[ui-test-sandbox] error initializing test sandbox: ${e}`)
}

@@ -167,3 +167,3 @@ }

if (!this._sandbox) {
throw new Error('[ui-test-utils] a stub cannot be created outside an `it`, `before`, or `beforeEach` block.')
throw new Error('[ui-test-sandbox] a stub cannot be created outside an `it`, `before`, or `beforeEach` block.')
}

@@ -180,3 +180,3 @@

if (!this._sandbox) {
throw new Error('[ui-test-utils] a spy cannot be created outside an `it`, `before`, or `beforeEach` block.')
throw new Error('[ui-test-sandbox] a spy cannot be created outside an `it`, `before`, or `beforeEach` block.')
}

@@ -197,3 +197,3 @@

if (!global.viewport) {
console.error('[ui-test-utils] the `viewport` global has not been configured. See https://github.com/squidfunk/karma-viewport.')
console.error('[ui-test-sandbox] the `viewport` global has not been configured. See https://github.com/squidfunk/karma-viewport.')
}

@@ -262,11 +262,4 @@ return global.viewport

let sandbox = {}
// Don't initialize sandbox for development or production
const ENV = process.env.NODE_ENV
if (ENV !== 'development' && ENV !== 'production') {
// only allow one Sandbox instance
sandbox = global.sandbox = global.sandbox || new Sandbox()
}
// only allow one Sandbox instance
const sandbox = global.sandbox = global.sandbox || new Sandbox()
const viewport = sandbox.viewport

@@ -273,0 +266,0 @@ const mount = (element, context) => sandbox.mount(element, context)

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