Comparing version 1.0.7 to 1.0.9
@@ -8,3 +8,3 @@ const request = require('node-superfetch'); | ||
let veriler = {}; | ||
body.forEach(v => { | ||
y.forEach(v => { | ||
veriler[v.birim] = { | ||
@@ -104,5 +104,5 @@ "birim": v.birim, | ||
}, | ||
tarih: async function(tarih, format) { | ||
if(!tarih) throw new TypeError('Lütfen bir tarih girin. Örneğin; 81204827 ya da January 1, 2019') | ||
var x = new Date(tarih) | ||
tarih: async function(date, format) { | ||
if(!date) throw new TypeError('Lütfen bir tarih girin. Örneğin; 81204827 ya da January 1, 2019') | ||
var x = new Date(date) | ||
const tarih = new Date(Date.UTC(x.getFullYear(), x.getMonth(), x.getDate(), x.getHours(), x.getMinutes(), x.getSeconds())) | ||
@@ -109,0 +109,0 @@ var aylar = ["Oca", "Şub", "Mar", "Nis", "May", "Haz", "Tem", "Ağu", "Eyl", "Eki", "Kas", "Ara"]; |
{ | ||
"name": "croxy-api", | ||
"version": "1.0.7", | ||
"version": "1.0.9", | ||
"description": "Gelişmiş bir Türkçe modül. Döviz, çeviri, tarih, para birimine çevirme, dizi arama, şarkı sözü arama vb.", | ||
@@ -5,0 +5,0 @@ "main": "app.js", |
@@ -6,4 +6,3 @@ # CroxyApi - Gelişmiş Bir Türkçe Modül! | ||
#Yenilikler | ||
* Tarihe format ayarlama eklendi. | ||
* Ufak iyileştirmeler yapıldı. | ||
* Hatalar düzeltildi. | ||
@@ -10,0 +9,0 @@ #Dökümasyon |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8416
71