@cemalidev/trate 1.4.1 → 1.4.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/dist/index.js +6 -6
- package/package.json +1 -1
- package/src/convert.ts +6 -6
- package/.github/workflows/cleanup.yml +0 -36
package/dist/index.js
CHANGED
|
@@ -771,15 +771,15 @@ var SUPPORTED_FIAT = [
|
|
|
771
771
|
"MXN"
|
|
772
772
|
];
|
|
773
773
|
var JEWELRY_API_MAP = {
|
|
774
|
-
CEYREK_ALTIN: "
|
|
775
|
-
YARIM_ALTIN: "
|
|
776
|
-
TAM_ALTIN: "
|
|
777
|
-
ATA_ALTIN: "
|
|
774
|
+
CEYREK_ALTIN: "yeni_ceyrek",
|
|
775
|
+
YARIM_ALTIN: "yeni_yarim",
|
|
776
|
+
TAM_ALTIN: "yeni_tam",
|
|
777
|
+
ATA_ALTIN: "yeni_ata"
|
|
778
778
|
};
|
|
779
779
|
var METAL_API_MAP = {
|
|
780
|
-
ONS: "
|
|
780
|
+
ONS: "ons",
|
|
781
781
|
GUMUS_OZ: "gumus_ons",
|
|
782
|
-
GRAM_ALTIN: "
|
|
782
|
+
GRAM_ALTIN: "has_altin"
|
|
783
783
|
};
|
|
784
784
|
function isCrypto(symbol) {
|
|
785
785
|
return CRYPTO_SYMBOLS.includes(symbol.toUpperCase());
|
package/package.json
CHANGED
package/src/convert.ts
CHANGED
|
@@ -76,16 +76,16 @@ export const SUPPORTED_FIAT = [
|
|
|
76
76
|
];
|
|
77
77
|
|
|
78
78
|
export const JEWELRY_API_MAP: Record<string, string> = {
|
|
79
|
-
CEYREK_ALTIN: '
|
|
80
|
-
YARIM_ALTIN: '
|
|
81
|
-
TAM_ALTIN: '
|
|
82
|
-
ATA_ALTIN: '
|
|
79
|
+
CEYREK_ALTIN: 'yeni_ceyrek',
|
|
80
|
+
YARIM_ALTIN: 'yeni_yarim',
|
|
81
|
+
TAM_ALTIN: 'yeni_tam',
|
|
82
|
+
ATA_ALTIN: 'yeni_ata',
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
export const METAL_API_MAP: Record<string, string> = {
|
|
86
|
-
ONS: '
|
|
86
|
+
ONS: 'ons',
|
|
87
87
|
GUMUS_OZ: 'gumus_ons',
|
|
88
|
-
GRAM_ALTIN: '
|
|
88
|
+
GRAM_ALTIN: 'has_altin',
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
export function isCrypto(symbol: string): boolean {
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
name: Cleanup Old Versions
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
deprecate:
|
|
8
|
-
name: Deprecate old versions
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
|
|
11
|
-
steps:
|
|
12
|
-
- name: Deprecate old versions
|
|
13
|
-
run: |
|
|
14
|
-
curl -X PUT \
|
|
15
|
-
-H "Authorization: Bearer ${{ secrets.NPM_TOKEN }}" \
|
|
16
|
-
-H "Content-Type: application/json" \
|
|
17
|
-
-d '{"deprecated": "Please use v1.4.0 or later"}' \
|
|
18
|
-
"https://registry.npmjs.org/@cemalidev/trate/1.0.0"
|
|
19
|
-
|
|
20
|
-
curl -X PUT \
|
|
21
|
-
-H "Authorization: Bearer ${{ secrets.NPM_TOKEN }}" \
|
|
22
|
-
-H "Content-Type: application/json" \
|
|
23
|
-
-d '{"deprecated": "Please use v1.4.0 or later"}' \
|
|
24
|
-
"https://registry.npmjs.org/@cemalidev/trate/1.0.1"
|
|
25
|
-
|
|
26
|
-
curl -X PUT \
|
|
27
|
-
-H "Authorization: Bearer ${{ secrets.NPM_TOKEN }}" \
|
|
28
|
-
-H "Content-Type: application/json" \
|
|
29
|
-
-d '{"deprecated": "Please use v1.4.0 or later"}' \
|
|
30
|
-
"https://registry.npmjs.org/@cemalidev/trate/1.0.2"
|
|
31
|
-
|
|
32
|
-
curl -X PUT \
|
|
33
|
-
-H "Authorization: Bearer ${{ secrets.NPM_TOKEN }}" \
|
|
34
|
-
-H "Content-Type: application/json" \
|
|
35
|
-
-d '{"deprecated": "Please use v1.4.0 or later"}' \
|
|
36
|
-
"https://registry.npmjs.org/@cemalidev/trate/1.0.3"
|