browser-sync-client
Advanced tools
Comparing version 2.30.0-alpha.3 to 3.0.0-alpha.0
@@ -52,10 +52,9 @@ "use strict"; | ||
function processItems(items) { | ||
return [] | ||
.concat(items) | ||
return [].concat(items) | ||
.filter(Boolean) | ||
.reduce((stringOutput, item) => { | ||
if (typeof item === "string") { | ||
if (typeof item === 'string') { | ||
return stringOutput + item; | ||
} | ||
if (typeof item === "function") { | ||
if (typeof item === 'function') { | ||
return stringOutput + item(); | ||
@@ -62,0 +61,0 @@ } |
122
package.json
{ | ||
"name": "browser-sync-client", | ||
"description": "Client-side scripts for BrowserSync", | ||
"version": "2.30.0-alpha.3", | ||
"homepage": "https://github.com/shakyshane/browser-sync-client", | ||
"author": "Shane Osbourne <shane.osbourne8@gmail.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/shakyshane/browser-sync-client.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/shakyshane/browser-sync-client/issues" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/shakyshane/browser-sync-client/blob/master/LICENSE-MIT" | ||
} | ||
], | ||
"main": "index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"engines": { | ||
"node": ">=8.0.0" | ||
}, | ||
"scripts": { | ||
"build": "npm run clean && webpack", | ||
"clean": "rm -rf dist", | ||
"watch": "npm run build -- --watch", | ||
"prepublishOnly": "npm run build", | ||
"tsc": "rm -rf dist/* dist2/* && tsc" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.21.3", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-typescript": "^7.21.0", | ||
"@types/node": "^8", | ||
"babel-loader": "^9.1.2", | ||
"core-js": "^3.29.1", | ||
"diff-dom": "^5.0.4", | ||
"element-scroll-polyfill": "^1.0.1", | ||
"nanologger": "^1.3.1", | ||
"rxjs": "^5.5.6", | ||
"socket.io-client": "^4.4.1", | ||
"ts-loader": "^9.2.7", | ||
"typescript": "^4.6.2", | ||
"webpack": "^5.17.0", | ||
"webpack-cli": "^4.4.0" | ||
}, | ||
"keywords": [], | ||
"dependencies": { | ||
"etag": "1.8.1", | ||
"fresh": "0.5.2", | ||
"mitt": "^1.1.3" | ||
}, | ||
"directories": { | ||
"lib": "lib", | ||
"test": "test" | ||
}, | ||
"license": "ISC", | ||
"gitHead": "b85a28ba9982f33db8a4e49de8a5103376a9c2ef" | ||
"name": "browser-sync-client", | ||
"description": "Client-side scripts for BrowserSync", | ||
"version": "3.0.0-alpha.0", | ||
"homepage": "https://github.com/shakyshane/browser-sync-client", | ||
"author": "Shane Osbourne <shane.osbourne8@gmail.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/shakyshane/browser-sync-client.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/shakyshane/browser-sync-client/issues" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/shakyshane/browser-sync-client/blob/master/LICENSE-MIT" | ||
} | ||
], | ||
"main": "index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"engines": { | ||
"node": ">=8.0.0" | ||
}, | ||
"scripts": { | ||
"build": "npm run clean && webpack", | ||
"clean": "rm -rf dist/*", | ||
"watch": "npm run build -- --watch", | ||
"prepublishOnly": "npm run build", | ||
"tsc": "rm -rf dist/* dist2/* && tsc" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.21.3", | ||
"@babel/preset-env": "^7.20.2", | ||
"@babel/preset-typescript": "^7.21.0", | ||
"@types/node": "^8", | ||
"babel-loader": "^9.1.2", | ||
"core-js": "^3.29.1", | ||
"element-scroll-polyfill": "^1.0.1", | ||
"esbuild": "^0.14.27", | ||
"nanologger": "^1.3.1", | ||
"rxjs": "^5.5.6", | ||
"socket.io-client": "^4.4.1", | ||
"ts-loader": "^9.2.7", | ||
"typescript": "^4.6.2", | ||
"webpack": "^5.17.0", | ||
"webpack-cli": "^4.4.0" | ||
}, | ||
"keywords": [], | ||
"dependencies": { | ||
"etag": "1.8.1", | ||
"fresh": "0.5.2", | ||
"mitt": "^1.1.3" | ||
}, | ||
"directories": { | ||
"lib": "lib", | ||
"test": "test" | ||
}, | ||
"license": "ISC", | ||
"gitHead": "ab5f75be8b3865b2f737e522e2dcae2101eeaaa2" | ||
} |
Sorry, the diff of this file is too big to display
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
0
198000
111