latinfo 0.5.0 → 0.5.2
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.
- package/dist/index.js +4 -4
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ const path_1 = __importDefault(require("path"));
|
|
|
10
10
|
const os_1 = __importDefault(require("os"));
|
|
11
11
|
const child_process_1 = require("child_process");
|
|
12
12
|
const demo_data_1 = require("./demo-data");
|
|
13
|
-
const VERSION = '0.5.
|
|
13
|
+
const VERSION = '0.5.2';
|
|
14
14
|
const API_URL = process.env.LATINFO_API_URL || 'https://api.latinfo.dev';
|
|
15
15
|
const GITHUB_CLIENT_ID = process.env.GITHUB_CLIENT_ID || 'Ov23li5fcQaiCsVtaMKK';
|
|
16
16
|
const CONFIG_DIR = path_1.default.join(os_1.default.homedir(), '.latinfo');
|
|
@@ -138,7 +138,7 @@ async function ruc(rucNumber) {
|
|
|
138
138
|
Zona: ${[demo.codigo_zona, demo.tipo_zona].filter(v => v && v !== '-').join(' ')}
|
|
139
139
|
`.trim());
|
|
140
140
|
}
|
|
141
|
-
process.stderr.write(`Demo data (${Object.keys(demo_data_1.DEMO_DATA).length} records). Run 'latinfo login' for
|
|
141
|
+
process.stderr.write(`Demo data (${Object.keys(demo_data_1.DEMO_DATA).length} records). Run 'latinfo login' for 18M+ records.\n`);
|
|
142
142
|
}
|
|
143
143
|
else {
|
|
144
144
|
if (jsonFlag)
|
|
@@ -218,7 +218,7 @@ async function search(query) {
|
|
|
218
218
|
console.log(`\n${results.length} result(s)`);
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
process.stderr.write(`Demo data (${Object.keys(demo_data_1.DEMO_DATA).length} records). Run 'latinfo login' for
|
|
221
|
+
process.stderr.write(`Demo data (${Object.keys(demo_data_1.DEMO_DATA).length} records). Run 'latinfo login' for 18M+ records.\n`);
|
|
222
222
|
return;
|
|
223
223
|
}
|
|
224
224
|
const res = await apiRequest(config, `/pe/search?q=${encodeURIComponent(query)}`);
|
|
@@ -394,7 +394,7 @@ QUICK START (no login needed)
|
|
|
394
394
|
latinfo ruc 20131312955 --json # SUNAT, JSON output
|
|
395
395
|
|
|
396
396
|
Works instantly with ${Object.keys(demo_data_1.DEMO_DATA).length} embedded records. Run 'latinfo login'
|
|
397
|
-
for
|
|
397
|
+
for 18M+ records and DNI lookup.
|
|
398
398
|
|
|
399
399
|
AUTH
|
|
400
400
|
Config file: ~/.latinfo/config.json
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "latinfo",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.5.2",
|
|
4
|
+
"description": "SUNAT RUC/DNI lookup CLI. Query Peru taxpayer data from terminal. Works without login. 18M+ records.",
|
|
5
5
|
"homepage": "https://latinfo.dev",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/latinfo/latinfo"
|
|
9
9
|
},
|
|
10
|
-
"keywords": ["
|
|
10
|
+
"keywords": ["sunat", "ruc", "dni", "consulta-ruc", "peru", "cli", "sunat-ruc", "taxpayer", "padron", "consulta", "api", "latin-america", "latam", "json"],
|
|
11
11
|
"main": "dist/sdk.js",
|
|
12
12
|
"types": "dist/sdk.d.ts",
|
|
13
13
|
"bin": {
|