@highlight-run/sourcemap-uploader
Advanced tools
Comparing version 0.1.5 to 0.2.0
22
index.js
#!/usr/bin/env node | ||
const { join, basename } = require("path"); | ||
const { cwd } = require("process"); | ||
const yargs = require("yargs/yargs"); | ||
const { hideBin } = require("yargs/helpers"); | ||
const { statSync, readFileSync } = require("fs"); | ||
const glob = require("glob"); | ||
const AWS = require("aws-sdk"); | ||
const fetch = require("node-fetch"); | ||
import { basename, join } from "path"; | ||
import { cwd } from "process"; | ||
import yargs from "yargs/yargs"; | ||
import { hideBin } from "yargs/helpers"; | ||
import { readFileSync, statSync } from "fs"; | ||
import glob from "glob"; | ||
import AWS from "aws-sdk"; | ||
import fetch from "node-fetch"; | ||
import { default as pjson } from "./package.json" assert { type: "json" }; | ||
@@ -25,3 +26,2 @@ const VERIFY_API_KEY_QUERY = ` | ||
var pjson = require("./package.json"); | ||
console.log("Running version: ", pjson.version); | ||
@@ -65,3 +65,3 @@ | ||
organizationId = res.data.api_key_to_org_id; | ||
let organizationId = res.data.api_key_to_org_id; | ||
@@ -154,3 +154,3 @@ console.info(`Starting to upload source maps from ${path}`); | ||
s3.upload(params, function (err, data) { | ||
s3.upload(params, function (err) { | ||
if (err) { | ||
@@ -157,0 +157,0 @@ throw err; |
{ | ||
"name": "@highlight-run/sourcemap-uploader", | ||
"version": "0.1.5", | ||
"version": "0.2.0", | ||
"description": "Command line tool to upload source maps to Highlight", | ||
"main": "index.js", | ||
"module": "index.js", | ||
"type": "module", | ||
"author": "Highlight", | ||
@@ -7,0 +9,0 @@ "license": "MIT", |
4863
Yes