Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-devops-symbols-sourcemap

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-devops-symbols-sourcemap - npm Package Compare versions

Comparing version 1.5.0 to 1.6.0

17

CHANGELOG.json

@@ -5,3 +5,18 @@ {

{
"date": "Wed, 15 Feb 2023 22:22:48 GMT",
"date": "Wed, 17 Jan 2024 21:09:12 GMT",
"version": "1.6.0",
"tag": "azure-devops-symbols-sourcemap_v1.6.0",
"comments": {
"minor": [
{
"author": "dannyvv@microsoft.com",
"package": "azure-devops-symbols-sourcemap",
"commit": "af48bc46413b0affc05d4e8497b281a22f6cc7ce",
"comment": "Enable silent option/mode for CLI and webpack plugins"
}
]
}
},
{
"date": "Wed, 15 Feb 2023 22:22:55 GMT",
"tag": "azure-devops-symbols-sourcemap_v1.5.0",

@@ -8,0 +23,0 @@ "version": "1.5.0",

# Change Log - azure-devops-symbols-sourcemap
This log was last generated on Wed, 15 Feb 2023 22:22:48 GMT and should not be manually modified.
This log was last generated on Wed, 17 Jan 2024 21:09:12 GMT and should not be manually modified.
<!-- Start content -->
## 1.6.0
Wed, 17 Jan 2024 21:09:12 GMT
### Minor changes
- Enable silent option/mode for CLI and webpack plugins (dannyvv@microsoft.com)
## 1.5.0
Wed, 15 Feb 2023 22:22:48 GMT
Wed, 15 Feb 2023 22:22:55 GMT

@@ -11,0 +19,0 @@ ### Minor changes

2

lib/index.d.ts

@@ -9,2 +9,2 @@ /**

export declare function setClientKeyOnSourceMap(clientKey: string, sourceMap: any): void;
export declare function indexJsMapFileAsync(organization: string, hashAlgo: string, jsMapFile: string): Promise<void>;
export declare function indexJsMapFileAsync(organization: string, hashAlgo: string, jsMapFile: string, silent?: boolean): Promise<void>;

@@ -52,5 +52,6 @@ "use strict";

}
function indexJsMapFileAsync(organization, hashAlgo, jsMapFile) {
function indexJsMapFileAsync(organization, hashAlgo, jsMapFile, silent) {
return __awaiter(this, void 0, void 0, function* () {
console.log(`Processing sourcemap file ${jsMapFile}`);
const log = silent ? () => { } : console.log;
log(`Processing sourcemap file ${jsMapFile} for organization ${organization} with hash algorithm: ${hashAlgo}`);
const sourceMap = yield fsExtra.readJson(jsMapFile);

@@ -71,6 +72,6 @@ if (!sourceMap.file) {

// Update the sourcemap file.
console.log(` Updating sourcemap file with key ${clientKey}`);
log(` Updating sourcemap file with key ${clientKey}`);
setClientKeyOnSourceMap(clientKey, sourceMap);
yield fsExtra.writeJSON(jsMapFile, sourceMap);
console.log(` Updating source file ${sourceFilePath}`);
log(` Updating source file ${sourceFilePath}`);
const sourceMapUrlComment = computeSourceMapUrlLine(organization, clientKey, path.basename(jsMapFile));

@@ -77,0 +78,0 @@ yield fsExtra.appendFile(sourceFilePath, sourceMapUrlComment);

{
"name": "azure-devops-symbols-sourcemap",
"version": "1.5.0",
"version": "1.6.0",
"license": "MIT",

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

@@ -48,4 +48,6 @@ import * as fsExtra from 'fs-extra';

export async function indexJsMapFileAsync(organization: string, hashAlgo: string, jsMapFile: string) : Promise<void> {
console.log(`Processing sourcemap file ${jsMapFile}`);
export async function indexJsMapFileAsync(organization: string, hashAlgo: string, jsMapFile: string, silent?: boolean) : Promise<void> {
const log = silent ? () => {} : console.log;
log(`Processing sourcemap file ${jsMapFile} for organization ${organization} with hash algorithm: ${hashAlgo}`);

@@ -71,9 +73,9 @@ const sourceMap = await fsExtra.readJson(jsMapFile);

// Update the sourcemap file.
console.log(` Updating sourcemap file with key ${clientKey}`);
log(` Updating sourcemap file with key ${clientKey}`);
setClientKeyOnSourceMap(clientKey, sourceMap)
await fsExtra.writeJSON(jsMapFile, sourceMap);
console.log(` Updating source file ${sourceFilePath}`);
log(` Updating source file ${sourceFilePath}`);
const sourceMapUrlComment = computeSourceMapUrlLine(organization, clientKey, path.basename(jsMapFile));
await fsExtra.appendFile(sourceFilePath, sourceMapUrlComment);
}

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