Comparing version 1.0.10 to 1.0.11
@@ -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
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
12515
1
211
3
- Removedbrowserify@^16.5.0
- RemovedJSONStream@1.3.5(transitive)
- Removedacorn@7.4.1(transitive)
- Removedacorn-node@1.8.2(transitive)
- Removedacorn-walk@7.2.0(transitive)
- Removedasn1.js@4.10.1(transitive)
- Removedassert@1.5.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbn.js@4.12.15.2.1(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedbrorand@1.1.0(transitive)
- Removedbrowser-pack@6.1.0(transitive)
- Removedbrowser-resolve@2.0.0(transitive)
- Removedbrowserify@16.5.2(transitive)
- Removedbrowserify-aes@1.2.0(transitive)
- Removedbrowserify-cipher@1.0.1(transitive)
- Removedbrowserify-des@1.0.2(transitive)
- Removedbrowserify-rsa@4.1.1(transitive)
- Removedbrowserify-sign@4.2.3(transitive)
- Removedbrowserify-zlib@0.2.0(transitive)
- Removedbuffer@5.2.1(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedbuffer-xor@1.0.3(transitive)
- Removedbuiltin-status-codes@3.0.0(transitive)
- Removedcached-path-relative@1.1.0(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcipher-base@1.0.5(transitive)
- Removedcombine-source-map@0.8.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedconcat-stream@1.6.2(transitive)
- Removedconsole-browserify@1.2.0(transitive)
- Removedconstants-browserify@1.0.0(transitive)
- Removedconvert-source-map@1.1.3(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcreate-ecdh@4.0.4(transitive)
- Removedcreate-hash@1.2.0(transitive)
- Removedcreate-hmac@1.1.7(transitive)
- Removedcrypto-browserify@3.12.1(transitive)
- Removeddash-ast@1.0.0(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddeps-sort@2.0.1(transitive)
- Removeddes.js@1.1.0(transitive)
- Removeddetective@5.2.1(transitive)
- Removeddiffie-hellman@5.0.3(transitive)
- Removeddomain-browser@1.2.0(transitive)
- Removedduplexer2@0.1.4(transitive)
- Removedelliptic@6.6.1(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedevents@2.1.0(transitive)
- Removedevp_bytestokey@1.0.3(transitive)
- Removedfast-safe-stringify@2.1.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-assigned-identifiers@1.2.0(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedglob@7.2.3(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas@1.0.4(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhash-base@3.0.4(transitive)
- Removedhash.js@1.1.7(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhmac-drbg@1.0.1(transitive)
- Removedhtmlescape@1.1.1(transitive)
- Removedhttps-browserify@1.0.0(transitive)
- Removedieee754@1.2.1(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.32.0.4(transitive)
- Removedinline-source-map@0.6.3(transitive)
- Removedinsert-module-globals@7.2.1(transitive)
- Removedis-buffer@1.1.6(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedisarray@1.0.0(transitive)
- Removedjson-stable-stringify@0.0.1(transitive)
- Removedjsonify@0.0.1(transitive)
- Removedjsonparse@1.3.1(transitive)
- Removedlabeled-stream-splicer@2.0.2(transitive)
- Removedlodash.memoize@3.0.4(transitive)
- Removedmd5.js@1.3.5(transitive)
- Removedmiller-rabin@4.0.1(transitive)
- Removedminimalistic-assert@1.0.1(transitive)
- Removedminimalistic-crypto-utils@1.0.1(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp-classic@0.5.3(transitive)
- Removedmodule-deps@6.2.3(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedobject.assign@4.1.5(transitive)
- Removedonce@1.4.0(transitive)
- Removedos-browserify@0.3.0(transitive)
- Removedpako@1.0.11(transitive)
- Removedparents@1.0.1(transitive)
- Removedparse-asn1@5.1.7(transitive)
- Removedpath-browserify@0.0.1(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-platform@0.11.15(transitive)
- Removedpbkdf2@3.1.2(transitive)
- Removedprocess@0.11.10(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedpublic-encrypt@4.0.3(transitive)
- Removedpunycode@1.4.1(transitive)
- Removedqs@6.13.1(transitive)
- Removedquerystring-es3@0.2.1(transitive)
- Removedrandombytes@2.1.0(transitive)
- Removedrandomfill@1.0.4(transitive)
- Removedread-only-stream@2.0.0(transitive)
- Removedreadable-stream@2.3.83.6.2(transitive)
- Removedresolve@1.22.8(transitive)
- Removedripemd160@2.0.2(transitive)
- Removedsafe-buffer@5.1.25.2.1(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedsha.js@2.4.11(transitive)
- Removedshasum@1.0.2(transitive)
- Removedshasum-object@1.0.0(transitive)
- Removedshell-quote@1.8.1(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedsimple-concat@1.0.1(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedstream-browserify@2.0.2(transitive)
- Removedstream-combiner2@1.1.1(transitive)
- Removedstream-http@3.2.0(transitive)
- Removedstream-splicer@2.0.1(transitive)
- Removedstring_decoder@1.1.11.3.0(transitive)
- Removedsubarg@1.0.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedsyntax-error@1.4.0(transitive)
- Removedthrough@2.3.8(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedtimers-browserify@1.4.2(transitive)
- Removedtty-browserify@0.0.1(transitive)
- Removedtypedarray@0.0.6(transitive)
- Removedumd@3.0.3(transitive)
- Removedundeclared-identifiers@1.1.3(transitive)
- Removedurl@0.11.4(transitive)
- Removedutil@0.10.4(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedvm-browserify@1.1.2(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedxtend@4.0.2(transitive)