forked from kriszyp/msgpackr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to point browsers to the right entry from package.json
- Loading branch information
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import packModule from './pack.js' | ||
import unpackModule from './unpack.js' | ||
import { createRequire } from 'module' | ||
|
||
export const Packr = packModule.Packr | ||
export const addExtension = packModule.addExtension | ||
export const Encoder = packModule.Packr | ||
export const Unpackr = unpackModule.Unpackr | ||
export const Decoder = unpackModule.Unpackr | ||
export const C1 = unpackModule.C1 | ||
let packr = new packModule.Packr({ useRecords: false }) | ||
export const unpack = packr.unpack | ||
export const unpackMultiple = packr.unpackMultiple | ||
export const pack = packr.pack | ||
export const decode = packr.unpack | ||
export const encode = packr.pack | ||
export const useRecords = false | ||
export const mapsAsObjects = true | ||
export const FLOAT32_OPTIONS = unpackModule.FLOAT32_OPTIONS | ||
export const ALWAYS = 1 | ||
export const DECIMAL_ROUND = 3 | ||
export const DECIMAL_FIT = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters