@vocab/phrase 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  export * from "./declarations/src/index";
2
- //# sourceMappingURL=vocab-phrase.cjs.d.ts.map
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm9jYWItcGhyYXNlLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
@@ -7,7 +7,7 @@ var path = require('path');
7
7
  var core = require('@vocab/core');
8
8
  var FormData = require('form-data');
9
9
  var fetch = require('node-fetch');
10
- var chalk = require('chalk');
10
+ var pc = require('picocolors');
11
11
  var debug = require('debug');
12
12
  var sync = require('csv-stringify/sync');
13
13
 
@@ -16,7 +16,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e };
16
16
  var path__default = /*#__PURE__*/_interopDefault(path);
17
17
  var FormData__default = /*#__PURE__*/_interopDefault(FormData);
18
18
  var fetch__default = /*#__PURE__*/_interopDefault(fetch);
19
- var chalk__default = /*#__PURE__*/_interopDefault(chalk);
19
+ var pc__default = /*#__PURE__*/_interopDefault(pc);
20
20
  var debug__default = /*#__PURE__*/_interopDefault(debug);
21
21
 
22
22
  const mkdir = fs.promises.mkdir;
@@ -25,7 +25,7 @@ const writeFile = fs.promises.writeFile;
25
25
  const trace = debug__default["default"](`vocab:phrase`);
26
26
  const log = (...params) => {
27
27
  // eslint-disable-next-line no-console
28
- console.log(chalk__default["default"].yellow('Vocab'), ...params);
28
+ console.log(pc__default["default"].yellow('Vocab'), ...params);
29
29
  };
30
30
 
31
31
  function translationsToCsv(translations, devLanguage) {
@@ -7,7 +7,7 @@ var path = require('path');
7
7
  var core = require('@vocab/core');
8
8
  var FormData = require('form-data');
9
9
  var fetch = require('node-fetch');
10
- var chalk = require('chalk');
10
+ var pc = require('picocolors');
11
11
  var debug = require('debug');
12
12
  var sync = require('csv-stringify/sync');
13
13
 
@@ -16,7 +16,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e };
16
16
  var path__default = /*#__PURE__*/_interopDefault(path);
17
17
  var FormData__default = /*#__PURE__*/_interopDefault(FormData);
18
18
  var fetch__default = /*#__PURE__*/_interopDefault(fetch);
19
- var chalk__default = /*#__PURE__*/_interopDefault(chalk);
19
+ var pc__default = /*#__PURE__*/_interopDefault(pc);
20
20
  var debug__default = /*#__PURE__*/_interopDefault(debug);
21
21
 
22
22
  const mkdir = fs.promises.mkdir;
@@ -25,7 +25,7 @@ const writeFile = fs.promises.writeFile;
25
25
  const trace = debug__default["default"](`vocab:phrase`);
26
26
  const log = (...params) => {
27
27
  // eslint-disable-next-line no-console
28
- console.log(chalk__default["default"].yellow('Vocab'), ...params);
28
+ console.log(pc__default["default"].yellow('Vocab'), ...params);
29
29
  };
30
30
 
31
31
  function translationsToCsv(translations, devLanguage) {
@@ -3,7 +3,7 @@ import path from 'path';
3
3
  import { getAltLanguages, loadAllTranslations, getUniqueKey, getAltLanguageFilePath } from '@vocab/core';
4
4
  import FormData from 'form-data';
5
5
  import fetch from 'node-fetch';
6
- import chalk from 'chalk';
6
+ import pc from 'picocolors';
7
7
  import debug from 'debug';
8
8
  import { stringify } from 'csv-stringify/sync';
9
9
 
@@ -13,7 +13,7 @@ const writeFile = promises.writeFile;
13
13
  const trace = debug(`vocab:phrase`);
14
14
  const log = (...params) => {
15
15
  // eslint-disable-next-line no-console
16
- console.log(chalk.yellow('Vocab'), ...params);
16
+ console.log(pc.yellow('Vocab'), ...params);
17
17
  };
18
18
 
19
19
  function translationsToCsv(translations, devLanguage) {
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@vocab/phrase",
3
- "version": "1.3.2",
3
+ "version": "1.3.3",
4
4
  "main": "dist/vocab-phrase.cjs.js",
5
5
  "module": "dist/vocab-phrase.esm.js",
6
6
  "author": "SEEK",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "@vocab/core": "^1.6.1",
10
- "chalk": "^4.1.0",
9
+ "@vocab/core": "^1.6.2",
11
10
  "csv-stringify": "^6.2.3",
12
11
  "debug": "^4.3.1",
13
12
  "form-data": "^3.0.0",
14
- "node-fetch": "^2.6.1"
13
+ "node-fetch": "^2.6.1",
14
+ "picocolors": "^1.0.0"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/debug": "^4.1.5",
@@ -1 +0,0 @@
1
- {"version":3,"file":"vocab-phrase.cjs.d.ts","sourceRoot":"","sources":["./declarations/src/index.d.ts"],"names":[],"mappings":"AAAA"}