currency_contry_exchange 1.1.2 → 1.1.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.
- package/README.md +32 -0
- package/dist/aweson-lib-luis.cjs +1 -1
- package/dist/aweson-lib-luis.iife.js +1 -1
- package/dist/aweson-lib-luis.js +11 -11
- package/dist/aweson-lib-luis.umd.cjs +1 -1
- package/dist/main.d.ts +3 -2
- package/dist/models/interfaces.d.ts +4 -0
- package/dist/utils/const.d.ts +1 -0
- package/package.json +3 -1
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
Changes in formats, currencies, documents and labels depending on location
|
|
4
|
+
|
|
5
|
+
### Node version
|
|
6
|
+
```
|
|
7
|
+
>= v20
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
$ pnpm install
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Running the app
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# development
|
|
21
|
+
$ pnpm run dev
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Deplymen
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
$ pnpm run build
|
|
29
|
+
$ npm publish --access=public
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
**Note:** Before publishing, run npm, commit the version and upload it to git, then change the versioning in the package.json
|
package/dist/aweson-lib-luis.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={peru:{cliente:"Cedente",deudor:"Aceptante"},chile:{cliente:"Cliente",deudor:"Deudor"}};class a{constructor(){}labels({contry:e,label:t}){return o[e.toLocaleLowerCase()][t.toLocaleLowerCase()]}}exports.Faastlocation=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var MyLib=function(e){"use strict";const t={
|
|
1
|
+
var MyLib=function(e){"use strict";const t={peru:{cliente:"Cedente",deudor:"Aceptante"},chile:{cliente:"Cliente",deudor:"Deudor"}};class o{constructor(){}labels({contry:a,label:c}){return t[a.toLocaleLowerCase()][c.toLocaleLowerCase()]}}return e.Faastlocation=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});
|
package/dist/aweson-lib-luis.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const t = {
|
|
2
|
+
peru: {
|
|
3
|
+
cliente: "Cedente",
|
|
4
|
+
deudor: "Aceptante"
|
|
5
5
|
},
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
chile: {
|
|
7
|
+
cliente: "Cliente",
|
|
8
|
+
deudor: "Deudor"
|
|
9
9
|
}
|
|
10
10
|
};
|
|
11
|
-
class
|
|
11
|
+
class c {
|
|
12
12
|
constructor() {
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
return
|
|
14
|
+
labels({ contry: e, label: o }) {
|
|
15
|
+
return t[e.toLocaleLowerCase()][o.toLocaleLowerCase()];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
c as Faastlocation
|
|
20
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.MyLib={}))})(this,function(e){"use strict";const t={
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.MyLib={}))})(this,function(e){"use strict";const t={peru:{cliente:"Cedente",deudor:"Aceptante"},chile:{cliente:"Cliente",deudor:"Deudor"}};class o{constructor(){}labels({contry:n,label:i}){return t[n.toLocaleLowerCase()][i.toLocaleLowerCase()]}}e.Faastlocation=o,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
package/dist/main.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Labels: any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "currency_contry_exchange",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
"preview": "vite preview"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
+
"eslint-config-prettier": "^9.1.0",
|
|
29
|
+
"prettier": "^3.3.3",
|
|
28
30
|
"typescript": "^5.5.3",
|
|
29
31
|
"vite": "^5.4.1",
|
|
30
32
|
"vite-plugin-dts": "^4.2.3"
|