Comments (2)
issue is not correct:
reason was I used
function decode(data) {
return new Decoder().decode(data);
}
and in this case default options for decoding are not applied.
https://github.com/kriszyp/cbor-x/blob/master/decode.js#L39
assume to add
else {options = defaultOptions}
to make defeault options applied on new Decoder()
from cbor-x.
The exported decode
function has different defaults than creating a Decoder
instance and using its decode
method.
from cbor-x.
Related Issues (20)
- Encoder options for record extension HOT 5
- Sort record keys HOT 2
- better structured clone support HOT 4
- Global namespace pollution; `stringRefs` ? HOT 3
- No encoding support for 64 bit format integers HOT 5
- [Feature]: Generate blob parts to support embedding blobs (aka files) HOT 27
- sorting HOT 2
- Distribute ESM HOT 3
- Is there a registered media type for when using the structured clone extension HOT 2
- Edge case with nested records sharing the same keys HOT 4
- SuperJSONatural - New kid in the game worth to take a look at it
- How to use with Axios? HOT 2
- cbor-x doesn't support integer keys HOT 4
- safeKey in cbor-x encode / decode HOT 4
- Add an option to disable the compiled reader HOT 3
- null is not an object (evaluating 'TypedArray.BYTES_PER_ELEMENT HOT 5
- Provide an option to force encoding numbers as double
- globalThis not available on older Safari versions HOT 3
- TypeError: encode is not a function HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cbor-x.