This commit is contained in:
Luiz H. R. Silva 2024-06-04 17:22:32 -03:00
parent 6d8a9e66b4
commit f14be700dd
9 changed files with 28 additions and 28 deletions

View file

@ -1,6 +1,6 @@
{ {
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json", "$schema": "https://biomejs.dev/schemas/1.7.3/schema.json",
"extends": ["node_modules/~comuns/Documentos/biome.json"], "extends": ["node_modules/p-comuns/Documentos/biome.json"],
"files": { "files": {
"ignore": [] "ignore": []
} }

View file

@ -1,4 +1,4 @@
import { type tipoResposta } from "~respostas"; import { type tipoResposta } from "p-respostas";
type tipoPostValidarTokem = { type tipoPostValidarTokem = {
token: string; token: string;
}; };

View file

@ -1,4 +1,4 @@
import { type tipoResposta } from "~respostas"; import { type tipoResposta } from "p-respostas";
type tipoPostValidarTokem = { type tipoPostValidarTokem = {
token: string; token: string;
}; };

View file

@ -1 +1 @@
{"version":3,"file":"autenticacao.d.ts","sourceRoot":"","sources":["../src/autenticacao.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9D,KAAK,oBAAoB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAC7C,KAAK,uBAAuB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAkE/C,2EAA2E;AAC3E,eAAO,MAAM,aAAa;;kBApDd,iBAAiB,GAAG,UAAU;cAClC,oBAAoB;QAC1B,mCAAmC;sBAE5B,MAAM,QACL,oBAAoB,KACvB,QAAQ,aAAa,GAAG,CAAC,CAAC;UAC7B,QAAQ,QAAQ,GAAG,MAAM,CAAC;gCApBK,iBAAiB,GAAG,UAAU;;kBAyCrD,iBAAiB,GAAG,UAAU;cAClC,uBAAuB;QAC7B,mCAAmC;sBAE5B,MAAM,QACL,uBAAuB,KAC1B,QAAQ,aAAa,MAAM,CAAC,CAAC;UAChC,QAAQ,aAAa,MAAM,CAAC,CAAC;CAqBhC,CAAA"} {"version":3,"file":"autenticacao.d.ts","sourceRoot":"","sources":["../src/autenticacao.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/D,KAAK,oBAAoB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAC7C,KAAK,uBAAuB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAkE/C,2EAA2E;AAC3E,eAAO,MAAM,aAAa;;kBApDd,iBAAiB,GAAG,UAAU;cAClC,oBAAoB;QAC1B,mCAAmC;sBAE5B,MAAM,QACL,oBAAoB,KACvB,QAAQ,aAAa,GAAG,CAAC,CAAC;UAC7B,QAAQ,QAAQ,GAAG,MAAM,CAAC;gCApBK,iBAAiB,GAAG,UAAU;;kBAyCrD,iBAAiB,GAAG,UAAU;cAClC,uBAAuB;QAC7B,mCAAmC;sBAE5B,MAAM,QACL,uBAAuB,KAC1B,QAAQ,aAAa,MAAM,CAAC,CAAC;UAChC,QAAQ,aAAa,MAAM,CAAC,CAAC;CAqBhC,CAAA"}

View file

@ -37,7 +37,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
}; };
Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "__esModule", { value: true });
exports.pAutenticacao = void 0; exports.pAutenticacao = void 0;
var _respostas_1 = require("~respostas"); var p_respostas_1 = require("p-respostas");
var urlAutenticacao = function (ambiente) { var urlAutenticacao = function (ambiente) {
return "".concat(ambiente == "producao" return "".concat(ambiente == "producao"
? "https://carro-de-boi.idz.one" ? "https://carro-de-boi.idz.one"
@ -83,14 +83,14 @@ var codigoContaSite = function (_a) {
case 1: case 1:
_b.trys.push([1, 3, , 4]); _b.trys.push([1, 3, , 4]);
return [4 /*yield*/, buscar(url, post).catch(function (e) { return [4 /*yield*/, buscar(url, post).catch(function (e) {
return _respostas_1.respostaComuns.erro("erro ao buscar c\u00F3digo do site: ".concat(e)); return p_respostas_1.respostaComuns.erro("erro ao buscar c\u00F3digo do site: ".concat(e));
})]; })];
case 2: case 2:
resp = _b.sent(); resp = _b.sent();
return [2 /*return*/, resp]; return [2 /*return*/, resp];
case 3: case 3:
e_2 = _b.sent(); e_2 = _b.sent();
return [2 /*return*/, _respostas_1.respostaComuns.erro("erro ao buscar c\u00F3digo do site: ".concat(e_2))]; return [2 /*return*/, p_respostas_1.respostaComuns.erro("erro ao buscar c\u00F3digo do site: ".concat(e_2))];
case 4: return [2 /*return*/]; case 4: return [2 /*return*/];
} }
}); });

View file

@ -1 +1 @@
{"version":3,"file":"autenticacao.js","sourceRoot":"","sources":["../src/autenticacao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA8D;AAI9D,IAAM,eAAe,GAAG,UAAC,QAAwC;IAC/D,OAAA,UACE,QAAQ,IAAI,UAAU;QACpB,CAAC,CAAC,8BAA8B;QAChC,CAAC,CAAC,uBAAuB,kBACd;AAJf,CAIe,CAAA;AAEjB,+BAA+B;AAC/B,IAAM,YAAY,GAAG,UAAO,EAY3B;QAXC,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,MAAM,YAAA;;;;;;oBAUA,GAAG,GAAG,UAAG,eAAe,CAAC,QAAQ,CAAC,oCAAiC,CAAA;;;;oBAGtD,qBAAM,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC;6BACrC,IAAI,CAAC,UAAC,QAAQ;4BACb,OAAA,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAE,QAAkB,CAAC,CAAC,CAAE,MAAgB;wBAAzD,CAAyD,CAC1D;6BACA,KAAK,CAAC,cAAM,OAAA,MAAe,EAAf,CAAe,CAAC,EAAA;;oBAJzB,QAAQ,GAAG,SAIc;oBAE/B,sBAAO,QAAQ,EAAA;;;oBAEf,sBAAO,MAAM,EAAA;;;;;CAEhB,CAAA;AAED,IAAM,eAAe,GAAG,UAAO,EAY9B;QAXC,QAAQ,cAAA,EACR,IAAI,UAAA,EAC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;oBAJzB,QAAQ,GAAG,SAIc;oBAE/B,sBAAO,QAAQ,EAAA;;;oBAEf,sBAAO,MAAM,EAAA;;;;;CAEhB,CAAA;AAED,IAAM,eAAe,GAAG,UAAO,EAY9B;QAXC,QAAQ,cAAA,EACR,IAAI,UAAA,EACJ,MAAM,YAAA;;;;;;oBAUA,GAAG,GAAG,UAAG,eAAe,CAC5B,QAAQ,CACT,6CAA0C,CAAA;;;;oBAG5B,qBAAM,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,UAAC,CAAC;4BAC3C,OAAA,4BAAc,CAAC,IAAI,CAAC,8CAAkC,CAAC,CAAE,CAAC;wBAA1D,CAA0D,CAC3D,EAAA;;oBAFK,IAAI,GAAG,SAEZ;oBAED,sBAAO,IAAI,EAAA;;;oBAEX,sBAAO,4BAAc,CAAC,IAAI,CAAC,8CAAkC,GAAC,CAAE,CAAC,EAAA;;;;;CAEpE,CAAA;AAED,2EAA2E;AAC9D,QAAA,aAAa,GAAG;IAC3B,YAAY,cAAA;IACZ,eAAe,iBAAA;IACf,eAAe,iBAAA;CAChB,CAAA"}

View file

@ -1,6 +1,6 @@
{ {
"name": "~drives", "name": "p-drives",
"version": "0.34.0", "version": "0.35.0",
"description": "", "description": "",
"main": "src/index.ts", "main": "src/index.ts",
"exports": { "exports": {
@ -11,7 +11,7 @@
} }
}, },
"scripts": { "scripts": {
"postinstall": "pnpm up ~*", "postinstall": "pnpm up p-*",
"build-back": "rm -fr dist-require && tsc -p ./tsconfig-require.json", "build-back": "rm -fr dist-require && tsc -p ./tsconfig-require.json",
"build-front": "rm -fr dist-import && tsc -p ./tsconfig-import.json", "build-front": "rm -fr dist-import && tsc -p ./tsconfig-import.json",
"build": "pnpm run biome && npm --no-git-tag-version version minor && pnpm run build-back && pnpm run build-front", "build": "pnpm run biome && npm --no-git-tag-version version minor && pnpm run build-back && pnpm run build-front",
@ -20,11 +20,11 @@
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "1.7.3", "@biomejs/biome": "1.7.3",
"@types/node": "^20.12.7", "@types/node": "^20.14.1",
"check-node-version": "^4.2.1", "check-node-version": "^4.2.1",
"~respostas": "git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_respostas.git#producao", "p-comuns": "git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_comuns.git#producao",
"~comuns": "git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_comuns.git#producao", "p-respostas": "git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_respostas.git#producao",
"typescript": "^4.8.4" "typescript": "^4.9.5"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",

24
pnpm-lock.yaml generated
View file

@ -16,20 +16,20 @@ importers:
specifier: 1.7.3 specifier: 1.7.3
version: 1.7.3 version: 1.7.3
'@types/node': '@types/node':
specifier: ^20.12.7 specifier: ^20.14.1
version: 20.14.0 version: 20.14.1
check-node-version: check-node-version:
specifier: ^4.2.1 specifier: ^4.2.1
version: 4.2.1 version: 4.2.1
p-comuns:
specifier: npm:~comuns@^0.24.0
version: ~comuns@git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_comuns.git#8ec9d76b6fc4cb18aacef4cdd74a11c6682189ec(typescript@4.9.5)
p-espostas:
specifier: npm:~respostas@^0.2.0
version: ~respostas@git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_respostas.git#2cedd41095ad7e964b5ec43bf1ae0480290d493e
typescript: typescript:
specifier: ^4.8.4 specifier: ^4.9.5
version: 4.9.5 version: 4.9.5
~comuns:
specifier: git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_comuns.git#producao
version: git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_comuns.git#8ec9d76b6fc4cb18aacef4cdd74a11c6682189ec(typescript@4.9.5)
~respostas:
specifier: git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_respostas.git#producao
version: git+http://leitura:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE3MTQ3NTA1NzYsImlzcyI6IkdpdG5lc3MiLCJwaWQiOjgsInRrbiI6eyJ0eXAiOiJwYXQiLCJpZCI6MzJ9fQ.OYdExOVQm5UI3wfeTaWjmD0o65Y1hrjFz5EvMB1a__U@git.idz.one:3000/git/multi-modulos-ambientais/_respostas.git#2cedd41095ad7e964b5ec43bf1ae0480290d493e
packages: packages:
@ -86,8 +86,8 @@ packages:
cpu: [x64] cpu: [x64]
os: [win32] os: [win32]
'@types/node@20.14.0': '@types/node@20.14.1':
resolution: {integrity: sha512-5cHBxFGJx6L4s56Bubp4fglrEpmyJypsqI6RgzMfBHWUJQGWAAi8cWcgetEbZXHYXo9C2Fa4EEds/uSyS4cxmA==} resolution: {integrity: sha512-T2MzSGEu+ysB/FkWfqmhV3PLyQlowdptmmgD20C6QxsS8Fmv5SjpZ1ayXaEC0S21/h5UJ9iA6W/5vSNU5l00OA==}
ansi-styles@4.3.0: ansi-styles@4.3.0:
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
@ -194,7 +194,7 @@ snapshots:
'@biomejs/cli-win32-x64@1.7.3': '@biomejs/cli-win32-x64@1.7.3':
optional: true optional: true
'@types/node@20.14.0': '@types/node@20.14.1':
dependencies: dependencies:
undici-types: 5.26.5 undici-types: 5.26.5

View file

@ -1,4 +1,4 @@
import { respostaComuns, type tipoResposta } from "~respostas" import { respostaComuns, type tipoResposta } from "p-respostas"
type tipoPostValidarTokem = { token: string } type tipoPostValidarTokem = { token: string }
type tipoPostCodigoContaSite = { site: string } type tipoPostCodigoContaSite = { site: string }