@churchcenter/url
Advanced tools
Comparing version 1.0.0-alpha.6 to 1.0.0
@@ -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){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 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 '/'";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){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 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 '/'";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){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){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}}); | ||
//# sourceMappingURL=url.umd.js.map |
{ | ||
"name": "@churchcenter/url", | ||
"version": "1.0.0-alpha.6", | ||
"version": "1.0.0", | ||
"description": "A dumb url origin generator in JS", | ||
@@ -8,9 +8,7 @@ "source": "index.js", | ||
"module": "dist/url.esm.js", | ||
"umd:main": "dist/url.umd.js", | ||
"repository": "https://github.com/planningcenter/churchcenter.git", | ||
"unpkg": "dist/url.umd.js", | ||
"author": "Michael Chan <mijoch@gmail.com>", | ||
"license": "UNLICENSED", | ||
"files": [ | ||
"dist", | ||
"index.js" | ||
"dist" | ||
], | ||
@@ -23,11 +21,7 @@ "publishConfig": { | ||
"dev": "microbundle watch --name ChurchCenterUrl", | ||
"pretest": "npm run build", | ||
"pretest": "yarn build", | ||
"prepublish": "yarn build", | ||
"test": "jest" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/planningcenter/churchcenter/issues" | ||
}, | ||
"homepage": "https://github.com/planningcenter/churchcenter/tree/master/packages/url", | ||
"private": false, | ||
"gitHead": "b1324898e204387445e9e216bd864c43e47087a7" | ||
"private": false | ||
} |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
15436
8
19