@ombori/grid-media-processing
Advanced tools
Comparing version 3.82.1 to 3.82.2
@@ -112,5 +112,3 @@ "use strict"; | ||
case 0: | ||
console.log('options:', options); | ||
blobUrl = options.url; | ||
console.log('blobUrl1:', blobUrl); | ||
if (!(!blobUrl && options.file)) return [3 /*break*/, 2]; | ||
@@ -120,8 +118,5 @@ return [4 /*yield*/, this.uploadFileToPreProcessedMediaStorage(options.file)]; | ||
blobUrl = _a.sent(); | ||
console.log('uploadFileToPreProcessedMediaStorage_blobUrl:', blobUrl); | ||
_a.label = 2; | ||
case 2: | ||
console.log('blobUrl2:', blobUrl); | ||
if (!blobUrl) { | ||
console; | ||
throw new Error('Failed to upload file to pre-processed media storage'); | ||
@@ -128,0 +123,0 @@ } |
{ | ||
"name": "@ombori/grid-media-processing", | ||
"version": "3.82.1", | ||
"version": "3.82.2", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -70,12 +70,9 @@ import { BlobServiceClient, ContainerClient } from '@azure/storage-blob'; | ||
public removeImageBackground = async (options: ImageRemoveBgOptions) => { | ||
console.log('options:', options); | ||
let blobUrl = options.url; | ||
console.log('blobUrl1:', blobUrl); | ||
if (!blobUrl && options.file) { | ||
blobUrl = await this.uploadFileToPreProcessedMediaStorage(options.file); | ||
console.log('uploadFileToPreProcessedMediaStorage_blobUrl:', blobUrl); | ||
} | ||
console.log('blobUrl2:', blobUrl); | ||
if (!blobUrl) { | ||
console | ||
throw new Error('Failed to upload file to pre-processed media storage'); | ||
@@ -82,0 +79,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3
28984
629