@salesforce/core
Advanced tools
Comparing version 0.24.4 to 0.24.5
@@ -1,3 +0,3 @@ | ||
/// <reference types="sinon" /> | ||
/// <reference types="node" /> | ||
import * as sinon from 'sinon'; | ||
import { AnyJson, JsonMap, Optional } from '@salesforce/ts-types'; | ||
@@ -120,3 +120,3 @@ import { EventEmitter } from 'events'; | ||
*/ | ||
export declare const testSetup: (sinon?: any) => TestContext; | ||
export declare const testSetup: (sinonInstance?: any) => TestContext; | ||
/** | ||
@@ -123,0 +123,0 @@ * A pre-canned error for try/catch testing. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* | ||
@@ -8,3 +9,3 @@ * Copyright (c) 2018, salesforce.com, inc. | ||
*/ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const sinon = require("sinon"); | ||
const kit_1 = require("@salesforce/kit"); | ||
@@ -109,6 +110,6 @@ const ts_types_1 = require("@salesforce/ts-types"); | ||
// tslint:disable-next-line:no-any | ||
exports.testSetup = kit_1.once((sinon) => { | ||
if (!sinon) { | ||
exports.testSetup = kit_1.once((sinonInstance) => { | ||
if (!sinonInstance) { | ||
try { | ||
sinon = require('sinon'); | ||
sinonInstance = require('sinon'); | ||
} | ||
@@ -115,0 +116,0 @@ catch (e) { |
{ | ||
"name": "@salesforce/core", | ||
"version": "0.24.4", | ||
"version": "0.24.5", | ||
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.", | ||
@@ -5,0 +5,0 @@ "main": "lib/exported", |
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
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
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
33356735
377
39282
17
7