ecomplus / client Goto Github PK
View Code? Open in Web Editor NEWIsomorphic JS client for E-Com Plus REST APIs
Home Page: https://developers.e-com.plus/client/
License: MIT License
Isomorphic JS client for E-Com Plus REST APIs
Home Page: https://developers.e-com.plus/client/
License: MIT License
Emitir eventos após cada requisição, retornando o objeto response
:
${api}.${resource}
);error
;Exemplos de uso:
ecomClient.store.products.on('get', ({ data }) => {
console.log(data.sku) // "S123"
})
ecomClient.store.on('error', response => {
console.log(response.status) // 400
})
Facilitar manipulação de dados assíncronos em múltiplos componentes/widgets no storefront;
IntersectionObserver
, acredito que seria mais fácil de implementar e mais flexível (todo o body do produto recebido como objeto).Centralizar manipulação de erros e data (um state global ?) no admin;
Centralizar com facilidade o debug de requisições com erro server side (Node.js);
Segurança: a intenção seria adicionar a possibilidade de criar intâncias de forma parecida com o axios para executar requisições autenticadas, neste caso os eventos são emitidos dentro da própria instância, que deverá ser um objeto privado, fora do escopo global.
Não emitir eventos na instância padrão caso a requisição seja autenticada ?
Uma implementação parecida, com a mesma solução mas talvez mais possibilidades pode ser utilizar RxJS e fornecer observadores em vez de métodos retornando promises. 🤔
To improve SSR performance, on Node we should create axios instance by default with options:
httpAgent: new http.Agent({ keepAlive: true }),
httpsAgent: new https.Agent({ keepAlive: true }),
It may be optionally disabled with a new env var.
use https://undici.nodejs.org/#/ ? 🤔
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
Check a new env to set request header X-Forwarded-For
with client IP.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
@babel/core
, @babel/preset-env
, @ecomplus/utils
, commit-and-tag-version
, core-js
, jsdoc
, node
)These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
@commitlint/cli
, @commitlint/config-conventional
).github/workflows/create-release.yml
actions/checkout v4
actions/create-release v1
.github/workflows/publish.yml
actions/checkout v4
actions/setup-node v4
actions/cache v4
package.json
axios ^0.27.2 || ^1.1.2
@babel/core ^7.24.4
@babel/preset-env ^7.24.4
@commitlint/cli ^17.8.1
@commitlint/config-conventional ^17.8.1
@ecomplus/utils ^1.4.1
babel-loader ^8.3.0
core-js ^3.36.1
docdash ^2.0.2
husky ^8.0.3
jsdoc ^4.0.2
standard ^17.1.0
commit-and-tag-version ^9.5.0
webpack ^4.47.0
webpack-cli ^3.3.12
webpack-dev-server ^3.11.3
core-js 3.x
@ecomplus/utils 1.x
.nvmrc
node 16
We haven't jsdoc examples for many methods, all marked with // TODO
.
Actually, these examples are intended not only for documentation but also unit tests, so we need them to release v1.
https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html
https://swyxkit.netlify.app/how-to-add-jsdoc-typechecking-to-sveltekit
Add types keeping JS (no TS compilation required) 👍🏾
Dependabot couldn't authenticate with registry.npmjs.org.
You can provide authentication details in your Dependabot dashboard by clicking into the account menu (in the top right) and selecting 'Config variables'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.