@technoeren/tdk-api
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@technoeren/tdk-api", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "app.js", | ||
@@ -10,5 +10,5 @@ "repository": "git@github.com:technoeren13/tdk-api.git", | ||
"scripts": { | ||
"start": "node src/app.js", | ||
"dev": "nodemon src/app.ts", | ||
"test": "node test/test.ts", | ||
"start": "node src/app", | ||
"dev": "nodemon dist/app.js", | ||
"test": "tsc && node dist/test.js", | ||
"build": "tsc", | ||
@@ -37,7 +37,9 @@ "format": "prettier --write \"src/**/*.ts\"", | ||
"dependencies": { | ||
"@technoeren/tdk-api": "^0.0.1", | ||
"axios": "^0.26.0", | ||
"husky": "^7.0.4", | ||
"nodemon": "^2.0.15", | ||
"prettier": "^2.5.1" | ||
"prettier": "^2.5.1", | ||
"ts-node": "^10.5.0" | ||
} | ||
} |
@@ -7,10 +7,10 @@ import axios from "axios"; | ||
public async getWord(word: string) { | ||
const response = await axios.request({ | ||
url: `https://sozluk.gov.tr/gts?ara=${word}`, | ||
}); | ||
let response = (await axios.get(`https://sozluk.gov.tr/gts?ara=${word}`)) | ||
.data[0]; | ||
return response | ||
return { | ||
anlamlar: [response.anlamlarListe], | ||
atasozu: response.atasozu ? response.atasozu[0].madde : null, | ||
}; | ||
} | ||
} | ||
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"module": "commonjs", | ||
"target": "ES2017", | ||
"module": "CommonJS", | ||
"declaration": true, | ||
@@ -6,0 +6,0 @@ "outDir": "./dist", |
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
2202
6
44
6
+ Added@technoeren/tdk-api@^0.0.1
+ Addedts-node@^10.5.0
+ Added@cspotcode/source-map-support@0.8.1(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.9(transitive)
+ Added@technoeren/tdk-api@0.0.1(transitive)
+ Added@tsconfig/node10@1.0.11(transitive)
+ Added@tsconfig/node12@1.0.11(transitive)
+ Added@tsconfig/node14@1.0.3(transitive)
+ Added@tsconfig/node16@1.0.4(transitive)
+ Added@types/node@22.9.0(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedacorn-walk@8.3.4(transitive)
+ Addedarg@4.1.3(transitive)
+ Addedcreate-require@1.1.1(transitive)
+ Addeddiff@4.0.2(transitive)
+ Addedmake-error@1.3.6(transitive)
+ Addedts-node@10.9.2(transitive)
+ Addedtypescript@5.6.3(transitive)
+ Addedundici-types@6.19.8(transitive)
+ Addedv8-compile-cache-lib@3.0.1(transitive)
+ Addedyn@3.1.1(transitive)