
Security News
Critical Security Vulnerability in React Server Components
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.
@escaladesports/esca-api-client
Advanced tools
A JavaScript client library for Escalade Sports microservices
A JavaScript client library for Escalade Sports microservices
/**
* Note: the below import should work as written; if not, you may need
* to import from either '@escaladesports/esca-api-client/browser' or
* '@escaladesports/esca-api-client/node' depending on your environment
*/
import EscaAPIClient from '@escaladesports/esca-api-client'
const client = new EscaAPIClient({
environment: `prod`, // 'test' or 'prod'; defaults to 'test'
site: `lifeline`, // site name; same as ESC-API-Context header
apiKey: `123abc789xyz` // optional; uses relative URLs if not given
})
Note: if apiKey is not provided, relative URLs formatted like /api/{resource}/{action} will be used (e.g. /api/products/load). Otherwise, the full escsportsapi.com URLs will be used (e.g. https://products.escsportsapi.com/load).
loadProducts is the only available function:const products = await client.loadProducts({
fields: [`inventory`, `price`], // optional; returns name & sku by default
skus: [`2-FMT-3`, `2-FMT-5`] // optional; defaults to 'all'
})
The client is meant to handle & report most errors. All functions will either:
A) return the expected data or appropriate empty structure (e.g. empty array for products)
B) potentially throw an error (for create/update/delete actions); the error will always be a proper Error object with a message suitable for displaying to the user
Functions which only load data (e.g. loadProducts) will never throw errors but may log failed requests or other problems to the console. Any problems such as failed API calls (non-404) will be reported to Sentry.
FAQs
A JavaScript client library for Escalade Sports microservices
We found that @escaladesports/esca-api-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.

Security News
TypeScript 6.0 will be the last JavaScript-based major release, as the project shifts to the TypeScript 7 native toolchain with major build speedups.