urban-dictionary-client
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,1 +0,20 @@ | ||
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var axios=_interopDefault(require("axios")),search=function(e){return axios.get("https://api.urbandictionary.com/v0/define",{params:{term:e}}).then(function(e){return e.data})};exports.search=search; | ||
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var axios = _interopDefault(require('axios')); | ||
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 | ||
exports.search = search; |
@@ -1,1 +0,14 @@ | ||
import axios from"axios";var search=function(r){return axios.get("https://api.urbandictionary.com/v0/define",{params:{term:r}}).then(function(r){return r.data})};export{search}; | ||
import axios from 'axios'; | ||
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 | ||
export { search }; |
@@ -1,1 +0,24 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("axios")):"function"==typeof define&&define.amd?define(["exports","axios"],t):t(e["urban-dictionary-client"]={},null)}(this,function(e,t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;e.search=function(e){return t.get("https://api.urbandictionary.com/v0/define",{params:{term:e}}).then(function(e){return e.data})},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
(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)); | ||
}(this, (function (exports, axios) { 'use strict'; | ||
axios = axios && axios.hasOwnProperty('default') ? axios['default'] : axios; | ||
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 | ||
exports.search = search; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); |
{ | ||
"name": "urban-dictionary-client", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Node JS Client for the Urban Dictionary API", | ||
@@ -17,12 +17,12 @@ "keywords": [ | ||
"scripts": { | ||
"build": "BABEL_ENV=production rollup -c", | ||
"codecov": "codecov", | ||
"commitmsg": "commitlint -e $GIT_PARAMS", | ||
"build": "BABEL_ENV=production npx rollup -c", | ||
"codecov": "npx codecov", | ||
"commitmsg": "npx commitlint -e $GIT_PARAMS", | ||
"deploy": "npm run travis-deploy-once 'npm run semantic-release'", | ||
"gc": "commit", | ||
"lint": "eslint --ext .js .", | ||
"lint": "npx eslint --ext .js .", | ||
"prepare": "npm run build", | ||
"semantic-release": "semantic-release", | ||
"test": "BABEL_ENV=test jest src/ --coverage --no-cache", | ||
"travis-deploy-once": "travis-deploy-once" | ||
"semantic-release": "npx semantic-release", | ||
"test": "BABEL_ENV=test npx jest src/ --coverage --no-cache", | ||
"travis-deploy-once": "npx travis-deploy-once" | ||
}, | ||
@@ -48,36 +48,33 @@ "repository": { | ||
"dependencies": { | ||
"axios": "^0.18.0" | ||
"axios": "^0.19.2" | ||
}, | ||
"peerDependencies": {}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0-beta.49", | ||
"@babel/core": "^7.0.0-beta.49", | ||
"@babel/plugin-transform-runtime": "^7.0.0-beta.49", | ||
"@babel/preset-env": "^7.0.0-beta.49", | ||
"@babel/runtime": "^7.0.0-beta.49", | ||
"@commitlint/cli": "^6.1.3", | ||
"@commitlint/config-angular": "^6.1.3", | ||
"@commitlint/prompt": "^6.1.3", | ||
"@commitlint/prompt-cli": "^6.1.3", | ||
"@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", | ||
"axios-debug": "0.0.4", | ||
"babel-core": "^7.0.0-0", | ||
"babel-jest": "^22.4.3", | ||
"codecov": "^3.0.2", | ||
"es-check": "^2.0.3", | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb-base": "^12.1.0", | ||
"eslint-plugin-import": "^2.9.0", | ||
"husky": "^0.14.3", | ||
"jest": "^22.4.3", | ||
"rollup": "^0.58.2", | ||
"rollup-plugin-babel": "^4.0.0-beta.4", | ||
"rollup-plugin-babel-minify": "^4.0.0", | ||
"rollup-plugin-commonjs": "^9.1.3", | ||
"rollup-plugin-filesize": "^1.5.0", | ||
"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", | ||
"rollup-plugin-local-resolve": "^1.0.7", | ||
"rollup-plugin-node-resolve": "^3.3.0", | ||
"rollup-plugin-uglify": "^3.0.0", | ||
"semantic-release": "^15.4.1", | ||
"travis-deploy-once": "^5.0.0" | ||
"semantic-release": "^17.0.3", | ||
"travis-deploy-once": "^5.0.11" | ||
} | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
6105
26
46
0
0
+ Addedaxios@0.19.2(transitive)
- Removedaxios@0.18.1(transitive)
- Removedis-buffer@2.0.5(transitive)
Updatedaxios@^0.19.2