@featurepeek/snippet.js
Advanced tools
Comparing version 0.2.10 to 0.2.11
@@ -1,1 +0,1 @@ | ||
!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([/--/,/\.netlify\.app$/])?n("netlify"):e([/--pr[\d]+-/,/\.web\.app$/])?n("firebase"):e([/-pr-?[\d]+\.herokuapp\.com$/])?n("heroku"):e([/-pr-[\d]+\.onrender\.com$/])&&n("render")}(); | ||
!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([/--/,/\.netlify\.app$/])?n("netlify"):e([/--pr[\d]+-/,/\.web\.app$/])?n("firebase"):e([/-pr-?[\d]+\.herokuapp\.com$/])?n("heroku"):e([/-pr-[\d]+\.onrender\.com$/])?n("render"):e([/^[\w-]{1,11}-/,/\.pantheonsite\.io$/])&&n("pantheon")}(); |
{ | ||
"name": "@featurepeek/snippet.js", | ||
"version": "0.2.10", | ||
"version": "0.2.11", | ||
"main": "dist/loader.js", | ||
@@ -22,6 +22,7 @@ "repository": "https://github.com/featurepeek/snippet.js", | ||
"scripts": { | ||
"build": "mkdir -p dist && yarn build:loader && yarn build:firebase && yarn build:heroku && yarn build:netlify && yarn build:render && yarn build:vercel", | ||
"build": "mkdir -p dist && yarn build:loader && yarn build:firebase && yarn build:heroku && yarn build:netlify && yarn build:pantheon && yarn build:render && yarn build:vercel", | ||
"build:firebase": "babel src/firebase.js | uglifyjs --compress --mangle --output dist/firebase.js", | ||
"build:heroku": "babel src/heroku.js | uglifyjs --compress --mangle --output dist/heroku.js", | ||
"build:netlify": "babel src/netlify.js | uglifyjs --compress --mangle --output dist/netlify.js", | ||
"build:pantheon": "babel src/pantheon.js | uglifyjs --compress --mangle --output dist/pantheon.js", | ||
"build:render": "babel src/render.js | uglifyjs --compress --mangle --output dist/render.js", | ||
@@ -28,0 +29,0 @@ "build:vercel": "babel src/vercel.js | uglifyjs --compress --mangle --output dist/vercel.js", |
@@ -18,3 +18,5 @@ ;(() => { | ||
appendScript('render') | ||
} else if (regexesMatchHostname([/^[\w-]{1,11}-/, /\.pantheonsite\.io$/])) { | ||
appendScript('pantheon') | ||
} | ||
})() |
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
209135
20
3667