@featurepeek/snippet.js
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -1,1 +0,1 @@ | ||
!function(){function e(e){return e.every(function(e){return e.test(location.hostname)})}function t(e){var t=document,n=t.createElement("script");n.src="https://unpkg.com/@featurepeek/snippet.js/dist/".concat(e,".js"),t.body.appendChild(n)}e([/--pr[\d]+-/,/\.web\.app$/])?t("firebase"):e([/--/,/\.netlify\.app$/])&&t("netlify")}(); | ||
!function(){function e(e){return e.every(function(e){return e.test(location.hostname)})}function n(e){var n=document,t=n.createElement("script");t.src="https://unpkg.com/@featurepeek/snippet.js/dist/".concat(e,".js"),n.body.appendChild(t)}e([/--pr[\d]+-/,/\.web\.app$/])?n("firebase"):e([/--/,/\.netlify\.app$/])?n("netlify"):e([/-pr-[\d]+\.onrender\.com$/])&&n("render")}(); |
{ | ||
"name": "@featurepeek/snippet.js", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"main": "dist/loader.js", | ||
@@ -22,5 +22,6 @@ "repository": "https://github.com/featurepeek/snippet.js", | ||
"scripts": { | ||
"build": "mkdir -p dist && yarn build:loader && yarn build:firebase && yarn build:netlify && yarn build:vercel", | ||
"build": "mkdir -p dist && yarn build:loader && yarn build:firebase && yarn build:netlify && yarn build:render && yarn build:vercel", | ||
"build:firebase": "babel src/firebase.js | uglifyjs --compress --mangle --output dist/firebase.js", | ||
"build:netlify": "babel src/netlify.js | uglifyjs --compress --mangle --output dist/netlify.js", | ||
"build:render": "babel src/render.js | uglifyjs --compress --mangle --output dist/render.js", | ||
"build:vercel": "babel src/vercel.js | uglifyjs --compress --mangle --output dist/vercel.js", | ||
@@ -27,0 +28,0 @@ "build:loader": "babel src/loader.js | uglifyjs --compress --mangle --output dist/loader.js", |
@@ -14,3 +14,5 @@ ;(() => { | ||
appendScript('netlify') | ||
} else if (regexesMatchHostname([/-pr-[\d]+\.onrender\.com$/])) { | ||
appendScript('render') | ||
} | ||
})() |
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
138202
16
2419