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

sozlukjs

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sozlukjs - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

2

bundle.js

@@ -89,3 +89,3 @@ require=(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

"Content-Type": "application/json",
Origin: "tureng.com"
"Origin": "tureng.com"
},

@@ -92,0 +92,0 @@ body: JSON.stringify(requestData)

{
"name": "sozlukjs",
"version": "1.0.10",
"version": "1.0.11",
"description": "An API library for Turkish Dictionary websites.",

@@ -22,15 +22,12 @@ "main": "index.js",

"repository": {
"git": "https://github.com/AtakanErmis/sozlukjs.git"
"type": "git",
"url": "https://github.com/AtakanErmis/sozlukjs.git"
},
"pre-commit": [
"build"
],
"dependencies": {
"browserify": "^16.5.0",
"node-fetch": "^2.6.0"
},
"devDependencies": {
"jest": "^24.9.0",
"pre-commit": "^1.2.2"
"browserify": "^16.5.0",
"jest": "^24.9.0"
}
}

@@ -38,11 +38,11 @@ # Sözlük.JS

Fetches the meaning of given `query` string.
Fetches and returns JSON meaning data of given `query` string.
- `TDKDictionary.getSpellingData(query)` *query: `String`* -> *`Promise`*
Fetches the spelling data of given `query` string.
Fetches and returns JSON spelling data of given `query` string.
- `TDKDictionary.getAudioUrl(query)` *query: `String`* -> *`Promise`*
Fetches the URL for pronounciation audio of given `query` string.
Fetches and returns URL for pronounciation audios of given `query` string.

@@ -53,6 +53,6 @@ ## `TurengDictionary`

Fetches suggestion results of given `query` string.
Fetches and returns JSON suggestion results of given `query` string.
- `TurengDictionary.getTermData(term)` *term: `String`* -> *`Promise`*
Fetches the meaning of given `term` string in Turkish.
Fetches and returns JSON data of given `term` string.

@@ -23,3 +23,3 @@ const fetch = require("node-fetch");

"Content-Type": "application/json",
Origin: "tureng.com"
"Origin": "tureng.com"
},

@@ -26,0 +26,0 @@ body: JSON.stringify(requestData)

const TDKDictionary = require("../src/modules/tdk");
test("gets meaning JSON data successfully", () => {
test("gets meaning JSON data successfully", (done) => {
TDKDictionary.getMeaningData("sözlük").then(data => {
expect(data).toBeInstanceOf(Object);
done();
});
});
test("gets spelling JSON data successfully", () => {
test("gets spelling JSON data successfully", (done) => {
TDKDictionary.getSpellingData("sözlük").then(data => {
expect(data).toBeInstanceOf(Object);
done();
});
});
test("gets audio JSON data successfully", () => {
test("gets audio JSON data successfully", (done) => {
TDKDictionary.getAudioUrl("sözlük").then(data => {
expect(data).toBeInstanceOf(Object);
done();
});
});
const TurengDictionary = require("../src/modules/tureng");
test("gets term JSON data successfully", () => {
test("gets term JSON data successfully", (done) => {
TurengDictionary.getTermData("dictionary").then(data => {
expect(data).toBeInstanceOf(Object);
done();
});
})
test("gets suggestion JSON data successfully", async () => {
test("gets suggestion JSON data successfully", (done) => {
TurengDictionary.getTermSuggestions("dictionary").then(data => {
expect(data).toBeInstanceOf(Object);
done();
});
})

Sorry, the diff of this file is not supported yet

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