para-cli 1.16.0 → 1.17.0

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.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +7 -29
package/index.js CHANGED
@@ -35,7 +35,7 @@ import { Parser } from 'htmlparser2';
35
35
  import { createInterface } from 'readline';
36
36
  import jsonwebtoken from 'jsonwebtoken';
37
37
  import { lookup } from 'mime-types';
38
- import { sync } from 'globby';
38
+ import { globbySync } from 'globby';
39
39
  import chalk from 'chalk';
40
40
  import { Promise } from 'rsvp';
41
41
  import apiClient from 'superagent';
@@ -74,7 +74,7 @@ export function createAll(pc, input, flags) {
74
74
  return;
75
75
  }
76
76
 
77
- var files = sync(input[1], { realpath: true });
77
+ var files = globbySync(input[1], { realpath: true });
78
78
  var totalSize = 0;
79
79
  var totalObjects = 0;
80
80
  var batches = [[]];
@@ -185,7 +185,7 @@ export function updateAll(pc, input, flags) {
185
185
  return;
186
186
  }
187
187
 
188
- var files = sync(input[1], { realpath: true });
188
+ var files = globbySync(input[1], { realpath: true });
189
189
  var updateList = [];
190
190
 
191
191
  for (var i = 0; i < files.length; i++) {
@@ -219,7 +219,7 @@ export function updateAll(pc, input, flags) {
219
219
 
220
220
  export function deleteAll(pc, input, flags) {
221
221
  if (flags.id || input[1]) {
222
- var deleteIds = sync(input[1] || ' ', { realpath: true });
222
+ var deleteIds = globbySync(input[1] || ' ', { realpath: true });
223
223
  if (deleteIds.length === 0) {
224
224
  deleteIds = flags.id instanceof Array ? flags.id : [String(flags.id)];
225
225
  }
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "para-cli",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
+ "license": "Apache-2.0",
4
5
  "description": "Command-line tool for Para backend servers",
5
6
  "homepage": "https://paraio.org",
6
7
  "type": "module",
8
+ "exports": "./index.js",
7
9
  "author": {
8
10
  "name": "Alex Bogdanovski",
9
11
  "email": "alex@erudika.com",
@@ -22,42 +24,18 @@
22
24
  "api"
23
25
  ],
24
26
  "devDependencies": {
25
- "eslint": "^7.28.0",
26
- "eslint-config-xo-space": "^0.28.0",
27
- "gulp": "^4.0.2",
28
- "gulp-eslint": "^6.0.0",
29
- "gulp-exclude-gitignore": "^1.2.0",
30
- "gulp-istanbul": "^1.1.3",
31
- "gulp-line-ending-corrector": "^1.0.3",
32
- "gulp-mocha": "^8.0.0",
33
- "gulp-plumber": "^1.2.1",
34
- "gulp-xo": "^0.25.0",
35
- "handlebars": "^4.7.6",
36
- "lodash": "^4.17.21",
37
- "mem": "^8.1.1",
38
- "minimist": ">=1.2.3",
39
- "yargs-parser": ">=20.2.7"
40
- },
41
- "eslintConfig": {
42
- "extends": "xo-space",
43
- "env": {
44
- "mocha": true
45
- }
27
+ "eslint": "^8.4.1"
46
28
  },
47
29
  "repository": "Erudika/para-cli",
48
- "scripts": {
49
- "test": "gulp"
50
- },
51
- "license": "Apache-2.0",
52
30
  "dependencies": {
53
31
  "brace-expansion": "^2.0.1",
54
- "chalk": "^4.1.1",
32
+ "chalk": "^5.0.0",
55
33
  "conf": "^10.0.1",
56
34
  "exit": "^0.1.2",
57
35
  "figlet": "^1.5.0",
58
36
  "get-stdin": "^9.0.0",
59
- "globby": "^11.0.4",
60
- "htmlparser2": "^6.1.0",
37
+ "globby": "^12.0.2",
38
+ "htmlparser2": "^7.2.0",
61
39
  "jsonwebtoken": "^8.5.1",
62
40
  "meow": "^10.0.1",
63
41
  "mime-types": "^2.1.31",