@designliquido/delegua 0.7.1 → 0.7.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/bin/package.json +2 -1
- package/fontes/bibliotecas/primitivas-texto.d.ts +1 -1
- package/fontes/bibliotecas/primitivas-texto.js +1 -1
- package/fontes/bibliotecas/primitivas-texto.js.map +1 -1
- package/fontes/bibliotecas/primitivas-vetor.d.ts +6 -4
- package/fontes/bibliotecas/primitivas-vetor.js +10 -3
- package/fontes/bibliotecas/primitivas-vetor.js.map +1 -1
- package/package.json +2 -1
package/bin/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designliquido/delegua",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Linguagem de programação simples e moderna usando português",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"empacotar": "rm -Rf ./dist && tsc && copyfiles -V ./bin/delegua ./bin/delegua.cmd ./dist && copyfiles -V ./package.json ./dist/bin && copyfiles -V ./README.md ./dist",
|
|
8
|
+
"lair": "ts-node index.ts",
|
|
8
9
|
"publicar-npm": "npm publish ./dist --access public",
|
|
9
10
|
"testes": "./bin/delegua-ts testes/exemplos/testes.egua",
|
|
10
11
|
"testes:delegua:bhaskara": "./bin/delegua-ts testes/exemplos/dialetos/egua-classico/bhaskara.egua",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
+
inclui: (texto: string, elemento: any) => boolean;
|
|
2
3
|
minusculo: (texto: string) => string;
|
|
3
4
|
maiusculo: (texto: string) => string;
|
|
4
|
-
inclui: (texto: string, elemento: any) => boolean;
|
|
5
5
|
substituir: (texto: string, elemento: string, substituto: string) => string;
|
|
6
6
|
subtexto: (texto: string, inicio: number, fim: number) => string;
|
|
7
7
|
dividir: (texto: string, divisor: any, limite: number) => string[];
|
|
@@ -10,9 +10,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.default = {
|
|
13
|
+
'inclui': function (texto, elemento) { return texto.includes(elemento); },
|
|
13
14
|
'minusculo': function (texto) { return texto.toLowerCase(); },
|
|
14
15
|
'maiusculo': function (texto) { return texto.toUpperCase(); },
|
|
15
|
-
'inclui': function (texto, elemento) { return texto.includes(elemento); },
|
|
16
16
|
"substituir": function (texto, elemento, substituto) { return texto.replace(elemento, substituto); },
|
|
17
17
|
"subtexto": function (texto, inicio, fim) { return texto.slice(inicio, fim); },
|
|
18
18
|
"dividir": function (texto, divisor, limite) { return (__spreadArray([], texto.split(divisor, limite), true)); },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitivas-texto.js","sourceRoot":"","sources":["../../../fontes/bibliotecas/primitivas-texto.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kBAAe;IACX,
|
|
1
|
+
{"version":3,"file":"primitivas-texto.js","sourceRoot":"","sources":["../../../fontes/bibliotecas/primitivas-texto.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kBAAe;IACX,QAAQ,EAAE,UAAC,KAAa,EAAE,QAAa,IAAK,OAAA,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAxB,CAAwB;IACpE,WAAW,EAAE,UAAC,KAAa,IAAK,OAAA,KAAK,CAAC,WAAW,EAAE,EAAnB,CAAmB;IACnD,WAAW,EAAE,UAAC,KAAa,IAAK,OAAA,KAAK,CAAC,WAAW,EAAE,EAAnB,CAAmB;IACnD,YAAY,EAAE,UAAC,KAAa,EAAE,QAAgB,EAAE,UAAkB,IAAK,OAAA,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAnC,CAAmC;IAC1G,UAAU,EAAE,UAAC,KAAa,EAAE,MAAc,EAAE,GAAW,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,EAAxB,CAAwB;IACpF,SAAS,EAAE,UAAC,KAAa,EAAE,OAAY,EAAE,MAAc,IAAK,OAAA,mBAAK,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,QAAE,EAAnC,CAAmC;CAClG,CAAA"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
inclui: (vetor: Array<any>, elemento: any) => boolean;
|
|
3
|
-
juntar: (vetor: Array<any>, separador:
|
|
4
|
-
removerUltimo: (vetor: Array<any>) => any;
|
|
5
|
-
removerPrimeiro: (vetor: Array<any>) => any;
|
|
6
|
-
empilhar: (vetor: Array<any>, elemento: any) =>
|
|
3
|
+
juntar: (vetor: Array<any>, separador: string) => string;
|
|
4
|
+
removerUltimo: (vetor: Array<any>) => any[];
|
|
5
|
+
removerPrimeiro: (vetor: Array<any>) => any[];
|
|
6
|
+
empilhar: (vetor: Array<any>, elemento: any) => any[];
|
|
7
7
|
inverter: (vetor: Array<any>) => any[];
|
|
8
8
|
fatia: (vetor: Array<any>, inicio: number, fim: number) => any[];
|
|
9
9
|
ordenar: (vetor: Array<any>) => any[];
|
|
10
|
+
somar: (vetor: Array<number>) => number;
|
|
11
|
+
remover: (vetor: Array<any>, elemento: any) => any[];
|
|
10
12
|
};
|
|
11
13
|
export default _default;
|
|
@@ -3,11 +3,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.default = {
|
|
4
4
|
'inclui': function (vetor, elemento) { return vetor.includes(elemento); },
|
|
5
5
|
'juntar': function (vetor, separador) { return vetor.join(separador); },
|
|
6
|
-
'removerUltimo': function (vetor) {
|
|
7
|
-
'removerPrimeiro': function (vetor) {
|
|
8
|
-
'empilhar': function (vetor, elemento) {
|
|
6
|
+
'removerUltimo': function (vetor) { vetor.pop(); return vetor; },
|
|
7
|
+
'removerPrimeiro': function (vetor) { vetor.shift(); return vetor; },
|
|
8
|
+
'empilhar': function (vetor, elemento) { vetor.push(elemento); return vetor; },
|
|
9
9
|
'inverter': function (vetor) { return vetor.reverse(); },
|
|
10
10
|
'fatia': function (vetor, inicio, fim) { return vetor.slice(inicio, fim); },
|
|
11
11
|
'ordenar': function (vetor) { return vetor.sort(); },
|
|
12
|
+
'somar': function (vetor) { return vetor.reduce(function (a, b) { return a + b; }); },
|
|
13
|
+
'remover': function (vetor, elemento) {
|
|
14
|
+
var index = vetor.indexOf(elemento);
|
|
15
|
+
if (index !== -1)
|
|
16
|
+
vetor.splice(index, 1);
|
|
17
|
+
return vetor;
|
|
18
|
+
},
|
|
12
19
|
};
|
|
13
20
|
//# sourceMappingURL=primitivas-vetor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitivas-vetor.js","sourceRoot":"","sources":["../../../fontes/bibliotecas/primitivas-vetor.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,QAAQ,EAAE,UAAC,KAAiB,EAAE,QAAa,IAAK,OAAA,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAxB,CAAwB;IACxE,QAAQ,EAAE,UAAC,KAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"primitivas-vetor.js","sourceRoot":"","sources":["../../../fontes/bibliotecas/primitivas-vetor.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,QAAQ,EAAE,UAAC,KAAiB,EAAE,QAAa,IAAK,OAAA,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAxB,CAAwB;IACxE,QAAQ,EAAE,UAAC,KAAiB,EAAE,SAAiB,IAAK,OAAA,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,EAArB,CAAqB;IACzE,eAAe,EAAE,UAAC,KAAiB,IAAO,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC;IACtE,iBAAiB,EAAE,UAAC,KAAiB,IAAO,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC;IAC1E,UAAU,EAAE,UAAC,KAAiB,EAAE,QAAa,IAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC;IACzF,UAAU,EAAE,UAAC,KAAiB,IAAK,OAAA,KAAK,CAAC,OAAO,EAAE,EAAf,CAAe;IAClD,OAAO,EAAE,UAAC,KAAiB,EAAE,MAAc,EAAE,GAAW,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,EAAxB,CAAwB;IACrF,SAAS,EAAE,UAAC,KAAiB,IAAK,OAAA,KAAK,CAAC,IAAI,EAAE,EAAZ,CAAY;IAC9C,OAAO,EAAE,UAAC,KAAoB,IAAK,OAAA,KAAK,CAAC,MAAM,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,GAAG,CAAC,EAAL,CAAK,CAAC,EAA7B,CAA6B;IAChE,SAAS,EAAE,UAAC,KAAiB,EAAE,QAAa;QACxC,IAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACtC,IAAI,KAAK,KAAK,CAAC,CAAC;YAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACzC,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@designliquido/delegua",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Linguagem de programação simples e moderna usando português",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"empacotar": "rm -Rf ./dist && tsc && copyfiles -V ./bin/delegua ./bin/delegua.cmd ./dist && copyfiles -V ./package.json ./dist/bin && copyfiles -V ./README.md ./dist",
|
|
8
|
+
"lair": "ts-node index.ts",
|
|
8
9
|
"publicar-npm": "npm publish ./dist --access public",
|
|
9
10
|
"testes": "./bin/delegua-ts testes/exemplos/testes.egua",
|
|
10
11
|
"testes:delegua:bhaskara": "./bin/delegua-ts testes/exemplos/dialetos/egua-classico/bhaskara.egua",
|