New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@churchcenter/url

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@churchcenter/url - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1-rc.1

2

dist/url.esm.js

@@ -1,2 +0,2 @@

function t(t,n){void 0===n&&(n=e());var r=c(n);return t&&(r=r.replace("://","://"+t+".")),r}function n(t,n){void 0===n&&(n=e());var r=function(t){return t.endsWith(".churchcenter.com")||t.endsWith("/churchcenter.com")||t.endsWith(".churchcenter.test")||t.endsWith("/churchcenter.test")?t:null}(n)||c(n);if(!t.startsWith("/"))throw"pathname must be a relative pathname beginning with '/'";return""+r+t}function e(){try{return window.location.origin}catch(t){return r("production")}}function c(t){return r(function(t){return t.endsWith("-staging.planningcenteronline.com")?"staging":t.endsWith(".staging.churchcenter.com")?"staging":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 r(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"}}export{t as buildSubdomain,n as buildUrl};
function t(t,n){void 0===n&&(n=e());var r=c(n);return t&&(r=r.replace("://","://"+t+".")),r}function n(t,n){void 0===n&&(n=e());var r=function(t){return t.endsWith(".churchcenter.com")||t.endsWith("/churchcenter.com")||t.endsWith(".churchcenter.test")||t.endsWith("/churchcenter.test")?t:null}(n)||c(n);if(!t.startsWith("/"))throw"pathname must be a relative pathname beginning with '/'";if(t.startsWith("//"))throw"pathname must be a relative pathname beginning with '/'";return""+r+t}function e(){try{return window.location.origin}catch(t){return r("production")}}function c(t){return r(function(t){return t.endsWith("-staging.planningcenteronline.com")?"staging":t.endsWith(".staging.churchcenter.com")?"staging":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 r(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"}}export{t as buildSubdomain,n as buildUrl};
//# sourceMappingURL=url.esm.js.map

@@ -1,2 +0,2 @@

function t(){try{return window.location.origin}catch(t){return e("production")}}function n(t){return e(function(t){return t.endsWith("-staging.planningcenteronline.com")?"staging":t.endsWith(".staging.churchcenter.com")?"staging":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 e(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"}}exports.buildSubdomain=function(e,c){void 0===c&&(c=t());var r=n(c);return e&&(r=r.replace("://","://"+e+".")),r},exports.buildUrl=function(e,c){void 0===c&&(c=t());var r=function(t){return t.endsWith(".churchcenter.com")||t.endsWith("/churchcenter.com")||t.endsWith(".churchcenter.test")||t.endsWith("/churchcenter.test")?t:null}(c)||n(c);if(!e.startsWith("/"))throw"pathname must be a relative pathname beginning with '/'";return""+r+e};
function t(){try{return window.location.origin}catch(t){return e("production")}}function n(t){return e(function(t){return t.endsWith("-staging.planningcenteronline.com")?"staging":t.endsWith(".staging.churchcenter.com")?"staging":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 e(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"}}exports.buildSubdomain=function(e,c){void 0===c&&(c=t());var r=n(c);return e&&(r=r.replace("://","://"+e+".")),r},exports.buildUrl=function(e,c){void 0===c&&(c=t());var r=function(t){return t.endsWith(".churchcenter.com")||t.endsWith("/churchcenter.com")||t.endsWith(".churchcenter.test")||t.endsWith("/churchcenter.test")?t:null}(c)||n(c);if(!e.startsWith("/"))throw"pathname must be a relative pathname beginning with '/'";if(e.startsWith("//"))throw"pathname must be a relative pathname beginning with '/'";return""+r+e};
//# sourceMappingURL=url.js.map

@@ -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.ChurchCenterUrl={})}(this,function(t){function n(){try{return window.location.origin}catch(t){return c("production")}}function e(t){return c(function(t){return t.endsWith("-staging.planningcenteronline.com")?"staging":t.endsWith(".staging.churchcenter.com")?"staging":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,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.ChurchCenterUrl={})}(this,function(t){function e(){try{return window.location.origin}catch(t){return c("production")}}function n(t){return c(function(t){return t.endsWith("-staging.planningcenteronline.com")?"staging":t.endsWith(".staging.churchcenter.com")?"staging":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=e());var r=n(c);return t&&(r=r.replace("://","://"+t+".")),r},t.buildUrl=function(t,c){void 0===c&&(c=e());var r=function(t){return t.endsWith(".churchcenter.com")||t.endsWith("/churchcenter.com")||t.endsWith(".churchcenter.test")||t.endsWith("/churchcenter.test")?t:null}(c)||n(c);if(!t.startsWith("/"))throw"pathname must be a relative pathname beginning with '/'";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",
"version": "1.0.1-rc.1",
"description": "A dumb url origin generator in JS",

@@ -5,0 +5,0 @@ "source": "index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc