Socket
Socket
Sign inDemoInstall

@rushstack/node-core-library

Package Overview
Dependencies
Maintainers
3
Versions
136
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rushstack/node-core-library - npm Package Compare versions

Comparing version 3.36.2 to 3.37.0

lib/Async.d.ts

12

CHANGELOG.json

@@ -5,2 +5,14 @@ {

{
"version": "3.37.0",
"tag": "@rushstack/node-core-library_v3.37.0",
"date": "Mon, 03 May 2021 15:10:28 GMT",
"comments": {
"minor": [
{
"comment": "Add a new API \"Async\" with some utilities for working with promises"
}
]
}
},
{
"version": "3.36.2",

@@ -7,0 +19,0 @@ "tag": "@rushstack/node-core-library_v3.36.2",

9

CHANGELOG.md
# Change Log - @rushstack/node-core-library
This log was last generated on Mon, 12 Apr 2021 15:10:28 GMT and should not be manually modified.
This log was last generated on Mon, 03 May 2021 15:10:28 GMT and should not be manually modified.
## 3.37.0
Mon, 03 May 2021 15:10:28 GMT
### Minor changes
- Add a new API "Async" with some utilities for working with promises
## 3.36.2

@@ -6,0 +13,0 @@ Mon, 12 Apr 2021 15:10:28 GMT

@@ -8,2 +8,3 @@ /**

export { AnsiEscape, IAnsiEscapeConvertForTestsOptions } from './Terminal/AnsiEscape';
export { Async, IAsyncParallelismOptions } from './Async';
export { Brand } from './PrimitiveTypes';

@@ -10,0 +11,0 @@ export { FileConstants, FolderConstants } from './Constants';

@@ -14,2 +14,4 @@ "use strict";

Object.defineProperty(exports, "AnsiEscape", { enumerable: true, get: function () { return AnsiEscape_1.AnsiEscape; } });
var Async_1 = require("./Async");
Object.defineProperty(exports, "Async", { enumerable: true, get: function () { return Async_1.Async; } });
var Enum_1 = require("./Enum");

@@ -16,0 +18,0 @@ Object.defineProperty(exports, "Enum", { enumerable: true, get: function () { return Enum_1.Enum; } });

2

lib/JsonFile.d.ts

@@ -139,3 +139,3 @@ import { JsonSchema, IJsonSchemaErrorInfo, IJsonSchemaValidateOptions } from './JsonSchema';

/**
* An async version of {@link JsonFile.loadAndValidateWithCallback}.
* An async version of {@link JsonFile.save}.
*/

@@ -142,0 +142,0 @@ static saveAsync(jsonObject: JsonObject, jsonFilename: string, options?: IJsonFileSaveOptions): Promise<boolean>;

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

/**
* An async version of {@link JsonFile.loadAndValidateWithCallback}.
* An async version of {@link JsonFile.save}.
*/

@@ -214,0 +214,0 @@ static async saveAsync(jsonObject, jsonFilename, options) {

@@ -59,3 +59,2 @@ /**

static acquire(resourceFolder: string, resourceName: string, maxWaitMs?: number): Promise<LockFile>;
private static _sleepForMs;
/**

@@ -62,0 +61,0 @@ * Attempts to acquire the lock on a Linux or OSX machine

@@ -27,5 +27,5 @@ "use strict";

const child_process = __importStar(require("child_process"));
const timers_1 = require("timers");
const FileSystem_1 = require("./FileSystem");
const FileWriter_1 = require("./FileWriter");
const Async_1 = require("./Async");
/**

@@ -228,3 +228,3 @@ * http://man7.org/linux/man-pages/man5/proc.5.html

}
await LockFile._sleepForMs(interval);
await Async_1.Async.sleep(interval);
return retryLoop();

@@ -234,9 +234,2 @@ };

}
static _sleepForMs(timeout) {
return new Promise((resolve, reject) => {
timers_1.setTimeout(() => {
resolve();
}, timeout);
});
}
/**

@@ -243,0 +236,0 @@ * Attempts to acquire the lock on a Linux or OSX machine

{
"name": "@rushstack/node-core-library",
"version": "3.36.2",
"version": "3.37.0",
"description": "Core libraries that every NodeJS toolchain project should use",

@@ -33,3 +33,3 @@ "main": "lib/index.js",

"@types/resolve": "1.17.1",
"@types/semver": "~7.3.1",
"@types/semver": "7.3.5",
"@types/timsort": "0.3.0",

@@ -36,0 +36,0 @@ "@types/z-schema": "3.16.31"

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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