New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

actbase-cli

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

actbase-cli - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

.prettierrc

28

dist/codepush.js

@@ -28,6 +28,6 @@ "use strict";

if (line.indexOf(key) >= 0) {
line = line.substring(line.indexOf("│") + 1);
line = line.substring(line.indexOf("│") + 1);
line = line.substring(line.indexOf(" ") + 1);
line = line.substring(0, line.indexOf(" "));
line = line.substring(line.indexOf('│') + 1);
line = line.substring(line.indexOf('│') + 1);
line = line.substring(line.indexOf(' ') + 1);
line = line.substring(0, line.indexOf(' '));
str = line;

@@ -73,3 +73,3 @@ }

for (let i = 0; i < podfileRows.length; i++) {
if (podfileRows[i].startsWith('target \'')) {
if (podfileRows[i].startsWith("target '")) {
name = podfileRows[i];

@@ -120,3 +120,3 @@ name = name.substring(name.indexOf("'") + 1);

appDelegate.splice(index2, 1, ' return [CodePush bundleURL];');
yield (0, _utils.writeFile)(`./ios/${name}/AppDelegate.m`, appDelegate.join("\n"));
yield (0, _utils.writeFile)(`./ios/${name}/AppDelegate.m`, appDelegate.join('\n'));
}

@@ -175,3 +175,3 @@

stringXml.splice(index1 + 1, 0, ` <string moduleConfig="true" name="CodePushDeploymentKey">${codepushKey}</string>`);
yield (0, _utils.writeFile)(`./android/app/src/main/res/values/strings.xml`, stringXml.join("\n"));
yield (0, _utils.writeFile)(`./android/app/src/main/res/values/strings.xml`, stringXml.join('\n'));
}

@@ -191,3 +191,3 @@

buildGradle.splice(index1 + 1, 0, `apply from: "../../node_modules/react-native-code-push/android/codepush.gradle"`);
yield (0, _utils.writeFile)(`./android/app/build.gradle`, buildGradle.join("\n"));
yield (0, _utils.writeFile)(`./android/app/build.gradle`, buildGradle.join('\n'));
}

@@ -217,3 +217,3 @@

mainApplicationJava.splice(index2 + 1, 0, ``);
yield (0, _utils.writeFile)(`./android/app/src/main/java/${pkgname}/MainApplication.java`, mainApplicationJava.join("\n"));
yield (0, _utils.writeFile)(`./android/app/src/main/java/${pkgname}/MainApplication.java`, mainApplicationJava.join('\n'));
}

@@ -234,3 +234,3 @@

var _ref5 = _asyncToGenerator(function* (file) {
console.log("Initalized to Codepush");
console.log('Initalized to Codepush');

@@ -291,9 +291,9 @@ if (Object.keys(file.dependencies).indexOf('react-native-code-push') < 0) {

const version = file.version;
let last = parseInt(version.substring(version.lastIndexOf(".") + 1)) + 1;
let last = parseInt(version.substring(version.lastIndexOf('.') + 1)) + 1;
file.version = version.substring(0, version.lastIndexOf('.') + 1) + last;
const text = JSON.stringify(file, null, 2);
yield (0, _utils.writeFile)("./package.json", text);
yield (0, _utils.writeFile)('./package.json', text);
if (!device.startsWith('and')) {
// iOS or All
// iOS or All
yield (0, _utils.execute)(`rm -rf build_ios`);

@@ -317,3 +317,3 @@ yield (0, _utils.execute)(`appcenter codepush release-react -a ${file.appcenter_ios} -d ${profile} --output-dir build_ios`);

if (!device.startsWith('ios')) {
// Android or All
// Android or All
yield (0, _utils.execute)(`rm -rf build_and`);

@@ -320,0 +320,0 @@ yield (0, _utils.execute)(`appcenter codepush release-react -a ${file.appcenter_and} -d ${profile} --output-dir build_and`);

@@ -27,4 +27,4 @@ "use strict";

const rows = csv.replace(/\r/g, '').split("\n");
const column = (_rows$splice$ = rows.splice(0, 1)[0]) === null || _rows$splice$ === void 0 ? void 0 : _rows$splice$.split(",");
const rows = csv.replace(/\r/g, '').split('\n');
const column = (_rows$splice$ = rows.splice(0, 1)[0]) === null || _rows$splice$ === void 0 ? void 0 : _rows$splice$.split(',');
let files = {};

@@ -37,6 +37,6 @@

rows.forEach(row => {
const data = row.split(",");
const data = row.split(',');
for (let i = 1; i < column.length; i++) {
files[column[i]][data[0]] = data[i] || "$$" + data[0];
files[column[i]][data[0]] = data[i] || '$$' + data[0];
}

@@ -70,3 +70,3 @@ });

for (let i = 1; i < column.length; i++) {
files[column[i]][data[0]] = data[i] || "$$" + data[0];
files[column[i]][data[0]] = data[i] || '$$' + data[0];
}

@@ -151,5 +151,5 @@ });

const text = JSON.stringify(files[fnames[i]], null, ' ');
const savePath = `${_config.output}/${fnames[i]}.json`.replace(/\/\//g, "/");
const savePath = `${_config.output}/${fnames[i]}.json`.replace(/\/\//g, '/');
yield (0, _utils.writeFile)(savePath, text);
console.log(savePath + " 저장 완료!");
console.log(savePath + ' 저장 완료!');
}

@@ -159,3 +159,3 @@ } else if (_config.path.indexOf('/edit#gid=') >= 0) {

key = key.substring(0, key.indexOf("/"));
key = key.substring(0, key.indexOf('/'));
const uri = `https://spreadsheets.google.com/feeds/cells/${key}/1/public/full?alt=json`;

@@ -182,5 +182,5 @@ const response = yield fetch(uri);

const text = JSON.stringify(files[fnames[i]], null, ' ');
const savePath = `${_config.output}/${fnames[i]}.json`.replace(/\/\//g, "/");
const savePath = `${_config.output}/${fnames[i]}.json`.replace(/\/\//g, '/');
yield (0, _utils.writeFile)(savePath, text);
console.log(savePath + " 저장 완료!");
console.log(savePath + ' 저장 완료!');
}

@@ -194,3 +194,3 @@ } else {

const text = JSON.stringify(file, null, 2);
yield (0, _utils.writeFile)("./package.json", text);
yield (0, _utils.writeFile)('./package.json', text);
}

@@ -197,0 +197,0 @@ });

@@ -8,2 +8,2 @@ #!/usr/bin/env node

program.version(_package.version).command('init [project-name]', 'Create a react project with actbase').command('i18n', 'init Language Pack').command('codepush', 'apply to code-push').parse(process.argv);
program.version(_package.version).command('init [project-name]', 'Create a react project with actbase').command('i18n', 'init Language Pack').command('assets', 'apply to assets').command('codepush', 'apply to code-push').parse(process.argv);
{
"name": "actbase-cli",
"version": "0.0.9",
"version": "0.0.10",
"description": "Actbase Command Line Interface",

@@ -14,2 +14,3 @@ "author": "Trabricks LLC",

"build": "babel src --out-dir dist --copy-files",
"localinstall": "npm run build && cp -r dist/* /usr/local/lib/node_modules/actbase-cli/dist/",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -38,3 +39,4 @@ },

"@babel/plugin-proposal-optional-chaining": "^7.6.0",
"@babel/preset-env": "^7.6.2"
"@babel/preset-env": "^7.6.2",
"prettier": "^1.19.1"
},

@@ -41,0 +43,0 @@ "repository": {

@@ -57,1 +57,6 @@ # actbase-cli

```
이후 셋팅이 완료되면 간단하게
npm run codepush-ios / npm run codepush-and
를 통해 코드푸시 처리를 할 수 있습니다.
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