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

accent-cli

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accent-cli - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

.oclif.manifest.json

2

lib/commands/add-translations.d.ts

@@ -28,3 +28,3 @@ import { flags } from '@oclif/command';

private logProjectOperation(project, documentConfigs);
private logProjectExport(project, documentConfigs);
private logProjectExport(documentConfigs);
}

@@ -25,3 +25,3 @@ "use strict";

// From all the documentConfigs, do the export, write to local file and log the results.
this.logProjectExport(this.project, documents.map((document) => document.config));
this.logProjectExport(documents.map((document) => document.config));
for (const document of documents) {

@@ -39,4 +39,5 @@ await Promise.all(document.paths.map(path => {

const operations = await document.addTranslations(path, flags);
if (operations.addTranslations && !operations.peek)
if (operations.addTranslations && !operations.peek) {
formatter.logAddTranslation(path);
}
if (operations.peek)

@@ -51,4 +52,4 @@ formatter.logPeek(path, operations.peek);

}
logProjectExport(project, documentConfigs) {
const formatter = new project_export_1.default(project);
logProjectExport(documentConfigs) {
const formatter = new project_export_1.default();
formatter.log(documentConfigs);

@@ -55,0 +56,0 @@ }

"use strict";
// Vendor
Object.defineProperty(exports, "__esModule", { value: true });

@@ -8,3 +7,2 @@ // Command

const project_stats_1 = require("../services/formatters/project-stats");
// Types
class Stats extends base_1.default {

@@ -11,0 +9,0 @@ async run() {

@@ -26,3 +26,3 @@ import Command from '../base-commit';

private logProjectOperation(project, documentConfigs);
private logProjectExport(project, documentConfigs);
private logProjectExport(documentConfigs);
}

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

// Formatters
const project_export_1 = require("../services/formatters/project-export");
const project_sync_1 = require("../services/formatters/project-sync");
const project_export_1 = require("../services/formatters/project-export");
const commit_operation_1 = require("../services/formatters/commit-operation");

@@ -25,3 +25,3 @@ const document_export_1 = require("../services/formatters/document-export");

// From all the documentConfigs, do the export, write to local file and log the results.
this.logProjectExport(this.project, documents.map((document) => document.config));
this.logProjectExport(documents.map((document) => document.config));
for (const document of documents) {

@@ -50,4 +50,4 @@ await Promise.all(document.paths.map(path => {

}
logProjectExport(project, documentConfigs) {
const formatter = new project_export_1.default(project);
logProjectExport(documentConfigs) {
const formatter = new project_export_1.default();
formatter.log(documentConfigs);

@@ -54,0 +54,0 @@ }

@@ -26,3 +26,5 @@ "use strict";

}
const selectedDocumentConfigs = documentConfig ? [documentConfig] : documentConfigs;
const selectedDocumentConfigs = documentConfig
? [documentConfig]
: documentConfigs;
if (!selectedDocumentConfigs.length) {

@@ -29,0 +31,0 @@ errors_1.error('You must have at least 1 document set in your config');

import { DocumentConfig } from '../../types/document-config';
import { Project } from '../../types/project';
export default class ProjectExportFormatter {
private readonly project;
constructor(project: Project);
log(documentConfigs: DocumentConfig[]): void;
}

@@ -6,5 +6,2 @@ "use strict";

class ProjectExportFormatter {
constructor(project) {
this.project = project;
}
log(documentConfigs) {

@@ -11,0 +8,0 @@ console.log(chalk_1.default.magenta(`Writing paths (${documentConfigs.length})`));

{
"name": "accent-cli",
"version": "0.2.0",
"version": "0.3.0",
"author": "Simon Prévost",
"description": "Accent CLI",
"bin": {

@@ -66,2 +67,3 @@ "accent": "./bin/run"

"fix": "tslint --project tsconfig.json --fix 'src/**/*.{ts,tsx}'",
"prepublishOnly": "npm run build && oclif-dev manifest",
"prettier": "prettier --single-quote --no-bracket-spacing --no-semi --write './src/**/*.{js,json,ts,tsx,gql}'",

@@ -68,0 +70,0 @@ "test": "mocha --forbid-only \"test/**/*.test.ts\""

@@ -14,3 +14,3 @@ Accent CLI

```sh-session
$ npm install -g accent
$ npm install -g accent-cli
$ accent COMMAND

@@ -17,0 +17,0 @@ running command...

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