@uxpin/storybook-deployer
Advanced tools
Comparing version 1.0.0 to 1.0.1-dev.169
{ | ||
"name": "@uxpin/storybook-deployer", | ||
"version": "1.0.0", | ||
"version": "1.0.1-dev.169", | ||
"description": "CLI to deploy static Storybook to UXPin", | ||
@@ -26,17 +26,17 @@ "main": "src/deploy.js", | ||
"devDependencies": { | ||
"@types/mime-types": "^2.1.0", | ||
"@types/node": "^15.3.0", | ||
"@typescript-eslint/eslint-plugin": "^4.24.0", | ||
"@typescript-eslint/parser": "^4.24.0", | ||
"eslint": "^7.26.0", | ||
"typescript": "^4.2.4" | ||
"@types/mime-types": "^2.1.1", | ||
"@types/node": "^16.11.7", | ||
"@typescript-eslint/eslint-plugin": "^5.36.1", | ||
"@typescript-eslint/parser": "^5.36.1", | ||
"eslint": "^8.23.0", | ||
"typescript": "4.4.2" | ||
}, | ||
"dependencies": { | ||
"aws-sdk": "^2.909.0", | ||
"axios": "^0.21.1", | ||
"chalk": "^4.1.1", | ||
"commander": "^7.2.0", | ||
"aws-sdk": "^2.1437.0", | ||
"axios": "^1.4.0", | ||
"chalk": "4.1.2", | ||
"commander": "^11.0.0", | ||
"form-data": "^4.0.0", | ||
"mime-types": "^2.1.30" | ||
"mime-types": "^2.1.35" | ||
} | ||
} |
@@ -85,3 +85,3 @@ "use strict"; | ||
_a.sent(); | ||
storybookUrl = path_1.join(getBaseUrl(args.uxpinDomain), 'libraries-storybook', libraryHash, 'index.html'); | ||
storybookUrl = (0, path_1.join)(getBaseUrl(args.uxpinDomain), 'libraries-storybook', libraryHash, 'index.html'); | ||
console.log(chalk_1.default.green("\u2705 DONE! Your storybook is available on " + storybookUrl)); | ||
@@ -126,3 +126,3 @@ return [3 /*break*/, 6]; | ||
try { | ||
return child_process_1.execSync("cd " + source + " && git rev-parse HEAD").toString().trim(); | ||
return (0, child_process_1.execSync)("cd " + source + " && git rev-parse HEAD").toString().trim(); | ||
} | ||
@@ -138,6 +138,6 @@ catch (error) { | ||
var results = []; | ||
var list = fs_1.readdirSync(source); | ||
var list = (0, fs_1.readdirSync)(source); | ||
list.forEach(function (fileOrDir) { | ||
fileOrDir = source + '/' + fileOrDir; | ||
var stat = fs_1.statSync(fileOrDir); | ||
var stat = (0, fs_1.statSync)(fileOrDir); | ||
if (stat && stat.isDirectory()) { | ||
@@ -162,4 +162,4 @@ results = results.concat(getFilesList(fileOrDir)); | ||
return __generator(this, function (_a) { | ||
relativePath = path_1.relative(args.source, absFilePath); | ||
key = path_1.join(s3Prefix, relativePath); | ||
relativePath = (0, path_1.relative)(args.source, absFilePath); | ||
key = (0, path_1.join)(s3Prefix, relativePath); | ||
form = new form_data_1.default(); | ||
@@ -172,3 +172,3 @@ Object.entries(presignedS3urlResponse.fields).forEach(function (_a) { | ||
form.append('Content-Type', mime_types_1.default.contentType(mime_types_1.default.lookup(absFilePath) || 'application/octet-stream')); | ||
form.append('file', fs_1.createReadStream(absFilePath)); | ||
form.append('file', (0, fs_1.createReadStream)(absFilePath)); | ||
return [2 /*return*/, new Promise(function (resolve, reject) { return form.submit(presignedS3urlResponse.url, function (err, data) { | ||
@@ -206,3 +206,3 @@ if (err) { | ||
function axiosWithEnhancedError(options) { | ||
return axios_1.default(options).catch(function (error) { | ||
return (0, axios_1.default)(options).catch(function (error) { | ||
if (error.response) { | ||
@@ -209,0 +209,0 @@ throw __assign(__assign({}, error.response.data), { url: options.url }); |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
13875
5
2
+ Addedaxios@1.7.9(transitive)
+ Addedcommander@11.1.0(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removedaxios@0.21.4(transitive)
- Removedcommander@7.2.0(transitive)
Updatedaws-sdk@^2.1437.0
Updatedaxios@^1.4.0
Updatedchalk@4.1.2
Updatedcommander@^11.0.0
Updatedmime-types@^2.1.35