Comparing version 0.3.2 to 0.4.0
import { TranslateAPI, LangFrom } from './components/translate'; | ||
declare const Default: TranslateAPI; | ||
declare const DefaultAPI: TranslateAPI; | ||
declare const translate: any; | ||
declare const Linguister: typeof Default.translate & { | ||
export { TranslateAPI, translate, LangFrom }; | ||
declare const Linguister: typeof DefaultAPI.translate & { | ||
LangFrom: typeof LangFrom; | ||
TranslateAPI: typeof TranslateAPI; | ||
translate: typeof translate; | ||
}; | ||
export { translate, TranslateAPI, LangFrom }; | ||
export default Linguister; |
@@ -6,4 +6,4 @@ "use strict"; | ||
exports.LangFrom = translate_1.LangFrom; | ||
const Default = new translate_1.TranslateAPI(); | ||
const translate = Default.translate.bind(Default); | ||
const DefaultAPI = new translate_1.TranslateAPI(); | ||
const translate = DefaultAPI.translate.bind(DefaultAPI); | ||
exports.translate = translate; | ||
@@ -13,2 +13,5 @@ const Linguister = translate; | ||
Linguister.TranslateAPI = translate_1.TranslateAPI; | ||
Linguister.translate = translate; | ||
exports.default = Linguister; | ||
Linguister['default'] = Linguister; | ||
module.exports = Linguister; |
{ | ||
"name": "linguister", | ||
"description": "Translate any text using the google translate api", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
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
23050
462