![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@churchcenter/url
Advanced tools
A dumb url origin generator in JS.
Builds environment-considered url origins in JS-land, for Church Center subdomains.
churchcenterurl("development")("carlsbad");
// => "http://carlsbad.churchcenter.test"
churchcenterurl("staging")("carlsbad");
// => "https://carlbad.churchcenteronline.com"
churchcenterurl("production")("carlsbad");
// => "https://carlsbad.staging.churchcenteronline.com"
Arguments are curried. You can make a generic env-considered function.
const envURL = churchcenterurl(window.railsEnv);
envURL("api");
Church center apps expose the Rails env as the JS global railsEnv
. Use like so.
churchcenterurl(railsEnv)("api");
fetch(`${churchcenterurl(env)("api")}/people/v2/me`, {
credentials: "include"
})
.then(res => res.json())
.then(json => json.data)
.then(({ id, attributes }) =>
this.setState({
currentUser: {
id,
...attributes
}
})
)
.catch(err => console.log(err));
Script tag on Rails
<script type="javascript" src="https://unpkg.com/@churchcenter/url"></script>
<!-- exposed as global `churchcenterurl` -->
Webpacker on Rails
yarn add @churchcenter/url
/* global railsEnv */
import pcurl from "@churchcenter/url";
pcurl(railsEnv)("api");
FAQs
A dumb url origin generator in JS
The npm package @churchcenter/url receives a total of 0 weekly downloads. As such, @churchcenter/url popularity was classified as not popular.
We found that @churchcenter/url demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.