urban-dictionary-client
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -5,8 +5,22 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var axios = require('axios'); | ||
var axios = _interopDefault(require('axios')); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios); | ||
var API_BASE_PATH = 'https://api.urbandictionary.com'; | ||
var autocompleteExtra = function autocompleteExtra(term) { | ||
return axios__default['default'].get("".concat(API_BASE_PATH, "/v0/autocomplete-extra"), { | ||
params: { | ||
term: term | ||
} | ||
}).then(function (response) { | ||
return response.data; | ||
}); | ||
}; | ||
var search = function search(term) { | ||
return axios.get('https://api.urbandictionary.com/v0/define', { | ||
return axios__default['default'].get("".concat(API_BASE_PATH, "/v0/define"), { | ||
params: { | ||
@@ -19,4 +33,4 @@ term: term | ||
}; | ||
// eslint-disable-line | ||
exports.autocompleteExtra = autocompleteExtra; | ||
exports.search = search; |
import axios from 'axios'; | ||
var API_BASE_PATH = 'https://api.urbandictionary.com'; | ||
var autocompleteExtra = function autocompleteExtra(term) { | ||
return axios.get("".concat(API_BASE_PATH, "/v0/autocomplete-extra"), { | ||
params: { | ||
term: term | ||
} | ||
}).then(function (response) { | ||
return response.data; | ||
}); | ||
}; | ||
var search = function search(term) { | ||
return axios.get('https://api.urbandictionary.com/v0/define', { | ||
return axios.get("".concat(API_BASE_PATH, "/v0/define"), { | ||
params: { | ||
@@ -12,4 +24,3 @@ term: term | ||
}; | ||
// eslint-disable-line | ||
export { search }; | ||
export { autocompleteExtra, search }; |
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('axios')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'axios'], factory) : | ||
(global = global || self, factory(global['urban-dictionary-client'] = {}, global.axios)); | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('axios')) : | ||
typeof define === 'function' && define.amd ? define(['exports', 'axios'], factory) : | ||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['urban-dictionary-client'] = {}, global.axios)); | ||
}(this, (function (exports, axios) { 'use strict'; | ||
axios = axios && axios.hasOwnProperty('default') ? axios['default'] : axios; | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var search = function search(term) { | ||
return axios.get('https://api.urbandictionary.com/v0/define', { | ||
params: { | ||
term: term | ||
} | ||
}).then(function (response) { | ||
return response.data; | ||
}); | ||
}; | ||
// eslint-disable-line | ||
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios); | ||
exports.search = search; | ||
var API_BASE_PATH = 'https://api.urbandictionary.com'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var autocompleteExtra = function autocompleteExtra(term) { | ||
return axios__default['default'].get("".concat(API_BASE_PATH, "/v0/autocomplete-extra"), { | ||
params: { | ||
term: term | ||
} | ||
}).then(function (response) { | ||
return response.data; | ||
}); | ||
}; | ||
var search = function search(term) { | ||
return axios__default['default'].get("".concat(API_BASE_PATH, "/v0/define"), { | ||
params: { | ||
term: term | ||
} | ||
}).then(function (response) { | ||
return response.data; | ||
}); | ||
}; | ||
exports.autocompleteExtra = autocompleteExtra; | ||
exports.search = search; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); |
{ | ||
"name": "urban-dictionary-client", | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"description": "Node JS Client for the Urban Dictionary API", | ||
@@ -20,3 +20,3 @@ "keywords": [ | ||
"commitmsg": "npx commitlint -e $GIT_PARAMS", | ||
"deploy": "npm run travis-deploy-once 'npm run semantic-release'", | ||
"deploy": "npm run semantic-release", | ||
"gc": "commit", | ||
@@ -26,4 +26,3 @@ "lint": "npx eslint --ext .js .", | ||
"semantic-release": "npx semantic-release", | ||
"test": "BABEL_ENV=test npx jest src/ --coverage --no-cache", | ||
"travis-deploy-once": "npx travis-deploy-once" | ||
"test": "BABEL_ENV=test npx jest src/ --coverage --no-cache" | ||
}, | ||
@@ -49,33 +48,33 @@ "repository": { | ||
"dependencies": { | ||
"axios": "^0.19.2" | ||
"axios": "^0.21.1" | ||
}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.8.4", | ||
"@babel/plugin-transform-runtime": "^7.8.3", | ||
"@babel/preset-env": "^7.8.4", | ||
"@babel/runtime": "^7.8.4", | ||
"@commitlint/cli": "^8.3.5", | ||
"@commitlint/config-angular": "^8.3.4", | ||
"@commitlint/prompt": "^8.3.5", | ||
"@commitlint/prompt-cli": "^8.3.5", | ||
"@rollup/plugin-commonjs": "^11.0.2", | ||
"@rollup/plugin-node-resolve": "^7.1.1", | ||
"@babel/cli": "^7.12.10", | ||
"@babel/core": "^7.12.10", | ||
"@babel/plugin-transform-runtime": "^7.12.10", | ||
"@babel/preset-env": "^7.12.11", | ||
"@babel/runtime": "^7.12.5", | ||
"@commitlint/cli": "^11.0.0", | ||
"@commitlint/config-angular": "^11.0.0", | ||
"@commitlint/prompt": "^11.0.0", | ||
"@commitlint/prompt-cli": "^11.0.0", | ||
"@rollup/plugin-babel": "^5.2.2", | ||
"@rollup/plugin-commonjs": "^17.0.0", | ||
"@rollup/plugin-node-resolve": "^11.0.1", | ||
"@rollup/pluginutils": "^4.1.0", | ||
"axios-debug": "0.0.4", | ||
"babel-jest": "^25.1.0", | ||
"codecov": "^3.6.5", | ||
"es-check": "^5.1.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-plugin-import": "^2.20.1", | ||
"husky": "^4.2.3", | ||
"jest": "^25.1.0", | ||
"rollup": "^1.31.0", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-filesize": "^6.2.1", | ||
"babel-jest": "^27.0.0-next.2", | ||
"codecov": "^3.8.1", | ||
"es-check": "^5.1.4", | ||
"eslint": "^7.16.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
"eslint-plugin-import": "^2.22.1", | ||
"husky": "^4.3.6", | ||
"jest": "^27.0.0-next.2", | ||
"rollup": "^2.35.1", | ||
"rollup-plugin-filesize": "^9.1.0", | ||
"rollup-plugin-local-resolve": "^1.0.7", | ||
"semantic-release": "^17.0.3", | ||
"travis-deploy-once": "^5.0.11" | ||
"semantic-release": "^17.3.0" | ||
} | ||
} |
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
7277
77
+ Addedaxios@0.21.4(transitive)
+ Addedfollow-redirects@1.15.9(transitive)
- Removedaxios@0.19.2(transitive)
- Removedfollow-redirects@1.5.10(transitive)
Updatedaxios@^0.21.1