Socket
Socket
Sign inDemoInstall

@salesforce/core

Package Overview
Dependencies
Maintainers
26
Versions
499
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@salesforce/core - npm Package Compare versions

Comparing version 0.24.4 to 0.24.5

.circleci/config.yml

4

lib/testSetup.d.ts

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

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