Socket
Socket
Sign inDemoInstall

@salesforce/core

Package Overview
Dependencies
Maintainers
47
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 8.3.0 to 8.4.0

8

lib/sfProject.d.ts

@@ -48,2 +48,4 @@ import { Dictionary, JsonMap, Nullable, Optional } from '@salesforce/ts-types';

read(): Promise<ProjectJson>;
/** force a reread of the project contents if you know they may have been modified */
refreshSync(): SfProjectJson;
readSync(): ProjectJson;

@@ -159,2 +161,8 @@ write(): Promise<ProjectJson>;

/**
* Clear the cache to force reading from disk.
*
* *NOTE: Only call this method if you must and you know what you are doing.*
*/
static clearInstances(): void;
/**
* Get a Project from a given path or from the working directory.

@@ -161,0 +169,0 @@ *

@@ -87,2 +87,7 @@ "use strict";

}
/** force a reread of the project contents if you know they may have been modified */
refreshSync() {
super.readSync(false, true);
return this;
}
readSync() {

@@ -344,2 +349,10 @@ const contents = super.readSync();

/**
* Clear the cache to force reading from disk.
*
* *NOTE: Only call this method if you must and you know what you are doing.*
*/
static clearInstances() {
SfProject.instances.clear();
}
/**
* Get a Project from a given path or from the working directory.

@@ -346,0 +359,0 @@ *

3

lib/testSetup.js

@@ -537,4 +537,3 @@ "use strict";

stateAggregator_1.StateAggregator.clearInstance();
// @ts-expect-error accessing a private property
sfProject_1.SfProject.instances.clear();
sfProject_1.SfProject.clearInstances();
// Allow each test to have their own config aggregator

@@ -541,0 +540,0 @@ // @ts-ignore clear for testing.

{
"name": "@salesforce/core",
"version": "8.3.0",
"version": "8.4.0",
"description": "Core libraries to interact with SFDX projects, orgs, and APIs.",

@@ -5,0 +5,0 @@ "main": "lib/index",

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