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 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
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={PE:{Cliente:"Cedente",Deudor:"Aceptante"},CL:{Cliente:"Cliente",Deudor:"Deudor"}};class n{constructor(){}etiquetas(e="Cliente",t="PE"){return r[t][e]}}exports.Changescurrezycontriestemp=n;
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={PE:{Cliente:"Cedente",Deudor:"Aceptante"},CL:{Cliente:"Cliente",Deudor:"Deudor"}};class n{constructor(){}etiquetas(r="Cliente",u="PE"){return t[u][r]}}return e.Changescurrezycontriestemp=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e}({});
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}({});
@@ -1,20 +1,20 @@
1
- const n = {
2
- PE: {
3
- Cliente: "Cedente",
4
- Deudor: "Aceptante"
1
+ const t = {
2
+ peru: {
3
+ cliente: "Cedente",
4
+ deudor: "Aceptante"
5
5
  },
6
- CL: {
7
- Cliente: "Cliente",
8
- Deudor: "Deudor"
6
+ chile: {
7
+ cliente: "Cliente",
8
+ deudor: "Deudor"
9
9
  }
10
10
  };
11
- class o {
11
+ class c {
12
12
  constructor() {
13
13
  }
14
- etiquetas(e = "Cliente", t = "PE") {
15
- return n[t][e];
14
+ labels({ contry: e, label: o }) {
15
+ return t[e.toLocaleLowerCase()][o.toLocaleLowerCase()];
16
16
  }
17
17
  }
18
18
  export {
19
- o as Changescurrezycontriestemp
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={PE:{Cliente:"Cedente",Deudor:"Aceptante"},CL:{Cliente:"Cliente",Deudor:"Deudor"}};class n{constructor(){}etiquetas(i="Cliente",o="PE"){return t[o][i]}}e.Changescurrezycontriestemp=n,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
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
@@ -1,4 +1,5 @@
1
- export declare class Changescurrezycontriestemp {
1
+ import { InterfaceLabels } from './models/interfaces';
2
+ export declare class Faastlocation {
2
3
  constructor();
3
- etiquetas(type?: string, contry?: string): any;
4
+ labels({ contry, label }: InterfaceLabels): any;
4
5
  }
@@ -0,0 +1,4 @@
1
+ export interface InterfaceLabels {
2
+ contry: string;
3
+ label: string;
4
+ }
@@ -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.2",
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"