@churchcenter/url
Advanced tools
Comparing version 1.0.0-alpha.3 to 1.0.0-alpha.4
@@ -1,2 +0,2 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.url={})}(this,function(t){function n(){try{return window.location.origin}catch(t){return c("production")}}function e(t){return c(function(t){if(t.endsWith("-staging.planningcenteronline.com"))return"staging";if(t.endsWith(".staging.churchcenter.com"))return"staging";return t.endsWith("/staging.churchcenter.com")?"staging":t.endsWith(".planningcenteronline.com")?"production":t.endsWith(".churchcenter.com")?"production":t.endsWith("/churchcenter.com")?"production":t.endsWith("pco.test")?"development":t.endsWith("churchcenter.test")?"development":"production"}(t))}function c(t){switch(t){case"test":case"development":return"http://churchcenter.test";case"staging":return"https://staging.churchcenter.com";case"production":default:return"https://churchcenter.com"}}t.buildSubdomain=function(t,c){void 0===c&&(c=n());var r=e(c);return t&&(r=r.replace("://","://"+t+".")),r},t.buildUrl=function(t,c){void 0===c&&(c=n());var r=function(t){return t.endsWith(".churchcenter.com")||t.endsWith("/churchcenter.com")||t.endsWith(".churchcenter.test")||t.endsWith("/churchcenter.test")?t:null}(c)||e(c);if(!t.startsWith("/"))throw"pathname must be a relative pathname beginning with '/'";return""+r+t}}); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(t.ChurchCenterUrl={})}(this,function(t){function n(){try{return window.location.origin}catch(t){return c("production")}}function e(t){return c(function(t){if(t.endsWith("-staging.planningcenteronline.com"))return"staging";if(t.endsWith(".staging.churchcenter.com"))return"staging";return t.endsWith("/staging.churchcenter.com")?"staging":t.endsWith(".planningcenteronline.com")?"production":t.endsWith(".churchcenter.com")?"production":t.endsWith("/churchcenter.com")?"production":t.endsWith("pco.test")?"development":t.endsWith("churchcenter.test")?"development":"production"}(t))}function c(t){switch(t){case"test":case"development":return"http://churchcenter.test";case"staging":return"https://staging.churchcenter.com";case"production":default:return"https://churchcenter.com"}}t.buildSubdomain=function(t,c){void 0===c&&(c=n());var r=e(c);return t&&(r=r.replace("://","://"+t+".")),r},t.buildUrl=function(t,c){void 0===c&&(c=n());var r=function(t){return t.endsWith(".churchcenter.com")||t.endsWith("/churchcenter.com")||t.endsWith(".churchcenter.test")||t.endsWith("/churchcenter.test")?t:null}(c)||e(c);if(!t.startsWith("/"))throw"pathname must be a relative pathname beginning with '/'";return""+r+t}}); | ||
//# sourceMappingURL=url.umd.js.map |
{ | ||
"name": "@churchcenter/url", | ||
"version": "1.0.0-alpha.3", | ||
"version": "1.0.0-alpha.4", | ||
"description": "A dumb url origin generator in JS", | ||
@@ -8,3 +8,3 @@ "source": "index.js", | ||
"module": "dist/url.esm.js", | ||
"browser": "dist/url.umd.js", | ||
"umd:main": "dist/url.umd.js", | ||
"repository": "https://github.com/planningcenter/churchcenter.git", | ||
@@ -18,4 +18,4 @@ "author": "Michael Chan <mijoch@gmail.com>", | ||
"scripts": { | ||
"build": "microbundle", | ||
"dev": "microbundle watch", | ||
"build": "microbundle --name ChurchCenterUrl", | ||
"dev": "microbundle watch --name ChurchCenterUrl", | ||
"pretest": "npm run build", | ||
@@ -22,0 +22,0 @@ "test": "jest" |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
17752
0