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

@uxpin/storybook-deployer

Package Overview
Dependencies
Maintainers
6
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxpin/storybook-deployer - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1-dev.169

24

package.json
{
"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 });

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