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

@highlight-run/sourcemap-uploader

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@highlight-run/sourcemap-uploader - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

dist/chunk-V6FD6OWE.mjs

11

dist/index.js

@@ -69,3 +69,4 @@ #!/usr/bin/env node

path,
basePath
basePath,
allowNoop
}) {

@@ -102,3 +103,3 @@ if (!apiKey || apiKey === "") {

console.info(`Starting to upload source maps from ${path}`);
const fileList = yield getAllSourceMapFiles([path]);
const fileList = yield getAllSourceMapFiles([path], { allowNoop });
if (fileList.length === 0) {

@@ -141,4 +142,4 @@ console.error(

});
function getAllSourceMapFiles(paths) {
return __async(this, null, function* () {
function getAllSourceMapFiles(_0, _1) {
return __async(this, arguments, function* (paths, { allowNoop }) {
const map = [];

@@ -155,3 +156,3 @@ yield Promise.all(

}
if (!(0, import_glob.globSync)("**/*.js.map", {
if (!allowNoop && !(0, import_glob.globSync)("**/*.js.map", {
cwd: realPath,

@@ -158,0 +159,0 @@ nodir: true,

@@ -1,2 +0,2 @@

declare const uploadSourcemaps: ({ apiKey, appVersion, path, basePath, }: {
declare const uploadSourcemaps: ({ apiKey, appVersion, path, basePath, allowNoop, }: {
apiKey: string;

@@ -6,4 +6,5 @@ appVersion: string;

basePath: string;
allowNoop?: boolean | undefined;
}) => Promise<void>;
export { uploadSourcemaps };

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

path,
basePath
basePath,
allowNoop
}) {

@@ -108,3 +109,3 @@ if (!apiKey || apiKey === "") {

console.info(`Starting to upload source maps from ${path}`);
const fileList = yield getAllSourceMapFiles([path]);
const fileList = yield getAllSourceMapFiles([path], { allowNoop });
if (fileList.length === 0) {

@@ -147,4 +148,4 @@ console.error(

});
function getAllSourceMapFiles(paths) {
return __async(this, null, function* () {
function getAllSourceMapFiles(_0, _1) {
return __async(this, arguments, function* (paths, { allowNoop }) {
const map = [];

@@ -161,3 +162,3 @@ yield Promise.all(

}
if (!(0, import_glob.globSync)("**/*.js.map", {
if (!allowNoop && !(0, import_glob.globSync)("**/*.js.map", {
cwd: realPath,

@@ -164,0 +165,0 @@ nodir: true,

{
"name": "@highlight-run/sourcemap-uploader",
"version": "0.5.1",
"version": "0.5.2",
"description": "Command line tool to upload source maps to Highlight",

@@ -5,0 +5,0 @@ "bin": "./dist/index.js",

@@ -24,2 +24,3 @@ import { basename, join } from "path";

basePath,
allowNoop,
}: {

@@ -30,2 +31,3 @@ apiKey: string;

basePath: string;
allowNoop?: boolean;
}) => {

@@ -76,3 +78,3 @@ if (!apiKey || apiKey === "") {

const fileList = await getAllSourceMapFiles([path]);
const fileList = await getAllSourceMapFiles([path], { allowNoop });

@@ -130,3 +132,6 @@ if (fileList.length === 0) {

async function getAllSourceMapFiles(paths: string[]) {
async function getAllSourceMapFiles(
paths: string[],
{ allowNoop }: { allowNoop?: boolean }
) {
const map: { path: string; name: string }[] = [];

@@ -148,2 +153,3 @@

if (
!allowNoop &&
!globSync("**/*.js.map", {

@@ -150,0 +156,0 @@ cwd: realPath,

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