@stableproxy/calculator
v1.0.67
Published
Calculator module for the frontend
Maintainers
Readme
Calculator.js 
⚠️ This is auto-generated module. Do not modify it manually.
You can also get actual version from API using https://api.stableproxy.com/v2/cart/calculator.js API also supports types:
modulerequirewindow
How generator works?
Generator convert backend code to frontend code. It's very simple. It just replace all require to import and add export default to the end of file.
Who using this?
This module is using in https://stableproxy.com (Frontend) and https://api.stableproxy.com projects.
Releasing
Everything here is generated from PriceCalculator::calculate() in the backend
repo, so a release starts there:
# 1. regenerate the bundles (in the backend repo; host PHP is often unusable)
docker compose exec app_dev php artisan js:generate-calculator-module
# 2. cut the release
cd public/js/calculator && ./upload.shupload.sh builds dist/, refuses to release an unchanged bundle or a branch
that is behind origin/main, bumps the patch version, commits and pushes.
It does not publish. The push triggers
.github/workflows/publish.yml, which smoke-tests
every entry point and publishes to npm using
trusted publishing — an OIDC token
minted at run time, so there is no NPM_TOKEN to rotate and no 2FA prompt.
Every release therefore also carries a provenance attestation.
The workflow skips a version that is already on npm, so re-running it is safe. If a release commit landed but the publish failed, re-run it from the Actions tab rather than cutting a new version.
The npm trusted-publisher entry is bound to this exact file path. Moving or renaming
.github/workflows/publish.ymlbreaks publishing until the entry on npmjs.com is updated to match.
