azure-devops-symbols-sourcemap
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -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 |
@@ -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
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
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
16101
277