@bustle/gam
Advanced tools
Comparing version
{ | ||
"name": "@bustle/gam", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"scripts": { | ||
"build": "npx webpack", | ||
"eslint": "eslint --ext .ts,.js --cache .", | ||
"lint": "npx tsc && npm run eslint", | ||
"lint": "tsc && npm run eslint", | ||
"package:github": "./bin/package-github", | ||
@@ -13,23 +13,22 @@ "test": "mocha '{,!(node_modules|dist)/**}/*.test.ts'" | ||
"devDependencies": { | ||
"@types/chai": "^4.2.18", | ||
"@types/mocha": "^8.2.2", | ||
"@types/chai": "^4.3.1", | ||
"@types/mocha": "^9.1.1", | ||
"@types/nock": "^11.1.0", | ||
"@types/node": "^15.12.0", | ||
"@typescript-eslint/eslint-plugin": "^4.26.1", | ||
"@typescript-eslint/parser": "^4.26.1", | ||
"@types/node": "^18.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.28.0", | ||
"@typescript-eslint/parser": "^5.28.0", | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-env": "^1.7.0", | ||
"chai": "^4.3.4", | ||
"esbuild-loader": "^2.13.1", | ||
"eslint": "^7.28.0", | ||
"mocha": "^8.4.0", | ||
"nock": "^13.1.0", | ||
"chai": "^4.3.6", | ||
"esbuild-loader": "^2.19.0", | ||
"eslint": "^8.18.0", | ||
"mocha": "^10.0.0", | ||
"nock": "^13.2.7", | ||
"ts-eager": "^2.0.2", | ||
"tsc": "^2.0.3", | ||
"typescript": "^4.3.2", | ||
"webpack": "^5.38.1", | ||
"webpack-cli": "^4.7.2" | ||
"typescript": "^4.7.4", | ||
"webpack": "^5.73.0", | ||
"webpack-cli": "^4.10.0" | ||
}, | ||
"dependencies": { | ||
"node-fetch": "^2.6.1" | ||
"node-fetch": "^2.6.7" | ||
}, | ||
@@ -36,0 +35,0 @@ "main": "node/gam", |
@@ -18,3 +18,3 @@ /* | ||
root["gam"] = factory(); | ||
})(this, function() { | ||
})(this, () => { | ||
return /******/ (() => { // webpackBootstrap | ||
@@ -30,3 +30,3 @@ /******/ "use strict"; | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createTaglessRequest\": () => (/* reexport safe */ _lib_createTaglessRequest__WEBPACK_IMPORTED_MODULE_1__.default)\n/* harmony export */ });\n/* harmony import */ var node_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node-fetch */ \"./node_modules/node-fetch/browser.js\");\n/* harmony import */ var node_fetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fetch__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _lib_createTaglessRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/createTaglessRequest */ \"./lib/createTaglessRequest.ts\");\n\n\nif (!globalThis.fetch) {\n globalThis.fetch = (node_fetch__WEBPACK_IMPORTED_MODULE_0___default());\n}\n\n\n\n//# sourceURL=webpack://gam/./index.ts?"); | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"createTaglessRequest\": () => (/* reexport safe */ _lib_createTaglessRequest__WEBPACK_IMPORTED_MODULE_1__[\"default\"])\n/* harmony export */ });\n/* harmony import */ var node_fetch__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! node-fetch */ \"./node_modules/node-fetch/browser.js\");\n/* harmony import */ var node_fetch__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(node_fetch__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _lib_createTaglessRequest__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/createTaglessRequest */ \"./lib/createTaglessRequest.ts\");\n\n\nif (!globalThis.fetch) {\n globalThis.fetch = (node_fetch__WEBPACK_IMPORTED_MODULE_0___default());\n}\n\n\n\n//# sourceURL=webpack://gam/./index.ts?"); | ||
@@ -41,3 +41,3 @@ /***/ }), | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ createQueryString)\n/* harmony export */ });\nfunction createQueryString(parameters) {\n return Object.entries(parameters).filter(([k, v]) => v !== void 0).map(([k, v]) => `${k}=${encodeURIComponent(typeof v === \"object\" ? createQueryString(v) : v)}`).join(\"&\");\n}\n\n\n//# sourceURL=webpack://gam/./lib/createQueryString.ts?"); | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ createQueryString)\n/* harmony export */ });\nfunction createQueryString(parameters) {\n return Object.entries(parameters).filter((entry) => typeof entry[1] !== \"undefined\").map(([k, v]) => `${k}=${encodeURIComponent(typeof v === \"object\" ? createQueryString(v) : v)}`).join(\"&\");\n}\n\n\n//# sourceURL=webpack://gam/./lib/createQueryString.ts?"); | ||
@@ -52,3 +52,3 @@ /***/ }), | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _createQueryString__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createQueryString */ \"./lib/createQueryString.ts\");\n\nconst BASE_URL = \"https://securepubads.g.doubleclick.net/gampad/adx\";\nfunction createTaglessRequest(parameters, {headers} = {}) {\n return fetch(`${BASE_URL}?${(0,_createQueryString__WEBPACK_IMPORTED_MODULE_0__.default)(parameters)}`, {headers});\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createTaglessRequest);\n\n\n//# sourceURL=webpack://gam/./lib/createTaglessRequest.ts?"); | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _createQueryString__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./createQueryString */ \"./lib/createQueryString.ts\");\n\nconst BASE_URL = \"https://securepubads.g.doubleclick.net/gampad/adx\";\nfunction createTaglessRequest(parameters, { headers } = {}) {\n return fetch(`${BASE_URL}?${(0,_createQueryString__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(parameters)}`, { headers });\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (createTaglessRequest);\n\n\n//# sourceURL=webpack://gam/./lib/createTaglessRequest.ts?"); | ||
@@ -63,3 +63,3 @@ /***/ }), | ||
eval("\n\n// ref: https://github.com/tc39/proposal-global\nvar getGlobal = function () {\n\t// the only reliable means to get the global object is\n\t// `Function('return this')()`\n\t// However, this causes CSP violations in Chrome apps.\n\tif (typeof self !== 'undefined') { return self; }\n\tif (typeof window !== 'undefined') { return window; }\n\tif (typeof global !== 'undefined') { return global; }\n\tthrow new Error('unable to locate global object');\n}\n\nvar global = getGlobal();\n\nmodule.exports = exports = global.fetch;\n\n// Needed for TypeScript and Webpack.\nif (global.fetch) {\n\texports.default = global.fetch.bind(global);\n}\n\nexports.Headers = global.Headers;\nexports.Request = global.Request;\nexports.Response = global.Response;\n\n//# sourceURL=webpack://gam/./node_modules/node-fetch/browser.js?"); | ||
eval("\n\n// ref: https://github.com/tc39/proposal-global\nvar getGlobal = function () {\n\t// the only reliable means to get the global object is\n\t// `Function('return this')()`\n\t// However, this causes CSP violations in Chrome apps.\n\tif (typeof self !== 'undefined') { return self; }\n\tif (typeof window !== 'undefined') { return window; }\n\tif (typeof global !== 'undefined') { return global; }\n\tthrow new Error('unable to locate global object');\n}\n\nvar global = getGlobal();\n\nmodule.exports = exports = global.fetch;\n\n// Needed for TypeScript and Webpack.\nif (global.fetch) {\n\texports[\"default\"] = global.fetch.bind(global);\n}\n\nexports.Headers = global.Headers;\nexports.Request = global.Request;\nexports.Response = global.Response;\n\n//# sourceURL=webpack://gam/./node_modules/node-fetch/browser.js?"); | ||
@@ -66,0 +66,0 @@ /***/ }) |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
414299
517.61%17
-5.56%7
16.67%1926
233.22%10
233.33%15
150%Updated