Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@technoeren/tdk-api

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@technoeren/tdk-api - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

src/test.ts

12

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc