Skip to content

Commit

Permalink
fix: react native
Browse files Browse the repository at this point in the history
  • Loading branch information
auer-martin committed Oct 28, 2024
1 parent 7108f48 commit fc118b3
Show file tree
Hide file tree
Showing 17 changed files with 3,249 additions and 108 deletions.
5 changes: 5 additions & 0 deletions .changeset/violet-bottles-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@protokoll/mdoc-client': patch
---

fix: react-native
4 changes: 1 addition & 3 deletions packages/mdoc/mdoc-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,10 @@
"build:cjs": "tsc --module commonjs --moduleResolution node --verbatimModuleSyntax false --outDir dist/cjs",
"format": "prettier --check . --ignore-path ../../../.gitignore",
"lint": "echo 'TODO: FIX AND ENABLE'",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit --verbatimModuleSyntax false"
},
"dependencies": {
"@jfromaniello/typedmap": "^1.4.0",
"@protokoll/core": "workspace:*",
"cbor-x": "^1.6.0",
"compare-versions": "^6.1.1"
},
"devDependencies": {
Expand Down
11 changes: 11 additions & 0 deletions packages/mdoc/mdoc-client/src/cbor/cbor-x/browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
exports.Encoder = require('./encode').Encoder;
exports.Decoder = require('./decode').Decoder;
exports.addExtension = require('./encode').addExtension;
let encoder = nconststststststststststexports.Encoder({ useRecords: false });
exports.decode = encoder.decode;
exports.encode = encoder.encode;
Object.assign(exports, {
ALWAYS: 1,
DECIMAL_ROUND: 3,
DECIMAL_FIT: 4,
});
14 changes: 14 additions & 0 deletions packages/mdoc/mdoc-client/src/cbor/cbor-x/decode.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export {
Decoder,
Extension,
FLOAT32_OPTIONS,
MAX_LIMITS_OPTIONS,
Options,
addExtension,
clearSource,
decode,
decodeMultiple,
isNativeAccelerationEnabled,
roundFloat32,
setMaxLimits,
} from '.';
Loading

0 comments on commit fc118b3

Please sign in to comment.