Comparing version 5.0.2 to 5.0.3
@@ -0,1 +1,8 @@ | ||
### [5.0.3](https://github.com/image-js/iobuffer/compare/v5.0.2...v5.0.3) (2021-02-26) | ||
### Bug Fixes | ||
* add browser field for lib/ version too ([#43](https://github.com/image-js/iobuffer/issues/43)) ([508083f](https://github.com/image-js/iobuffer/commit/508083f9ea2288df57992d1659cfe78e0b751a38)) | ||
## [5.0.2](https://github.com/image-js/iobuffer/compare/v5.0.1...v5.0.2) (2019-11-12) | ||
@@ -2,0 +9,0 @@ |
@@ -0,0 +0,0 @@ import { decode, encode } from './utf8'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,1 +1,2 @@ | ||
// eslint-disable-next-line import/no-unassigned-import | ||
import './text-encoding-polyfill'; | ||
@@ -2,0 +3,0 @@ const decoder = new TextDecoder('utf-8'); |
@@ -0,0 +0,0 @@ import { TextDecoder, TextEncoder } from 'util'; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IOBuffer = void 0; | ||
const utf8_1 = require("./utf8"); | ||
@@ -4,0 +5,0 @@ const defaultByteLength = 1024 * 8; |
@@ -0,0 +0,0 @@ "use strict"; |
import './text-encoding-polyfill'; | ||
export declare function decode(bytes: Uint8Array): string; | ||
export declare function encode(str: string): Uint8Array; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encode = exports.decode = void 0; | ||
// eslint-disable-next-line import/no-unassigned-import | ||
require("./text-encoding-polyfill"); | ||
@@ -4,0 +6,0 @@ const decoder = new TextDecoder('utf-8'); |
export declare function decode(bytes: Uint8Array): string; | ||
export declare function encode(str: string): Uint8Array; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encode = exports.decode = void 0; | ||
const util_1 = require("util"); | ||
@@ -4,0 +5,0 @@ const decoder = new util_1.TextDecoder('utf-8'); |
{ | ||
"name": "iobuffer", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Read and write binary data on ArrayBuffers", | ||
@@ -9,3 +9,4 @@ "main": "./lib/IOBuffer.js", | ||
"browser": { | ||
"./lib-esm/utf8.js": "./lib-esm/utf8.browser.js" | ||
"./lib-esm/utf8.js": "./lib-esm/utf8.browser.js", | ||
"./lib/utf8.js": "./lib/utf8.browser.js" | ||
}, | ||
@@ -49,19 +50,12 @@ "files": [ | ||
"devDependencies": { | ||
"@types/jest": "^24.0.22", | ||
"@types/node": "^12.12.7", | ||
"@typescript-eslint/eslint-plugin": "^2.7.0", | ||
"@typescript-eslint/parser": "^2.7.0", | ||
"eslint": "^6.6.0", | ||
"eslint-config-cheminfo": "^2.0.4", | ||
"eslint-config-cheminfo-typescript": "^4.1.2", | ||
"eslint-plugin-import": "^2.18.2", | ||
"eslint-plugin-jest": "^23.0.3", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"jest": "^24.9.0", | ||
"prettier": "^1.19.1", | ||
"rimraf": "^3.0.0", | ||
"ts-jest": "^24.1.0", | ||
"typescript": "^3.7.2" | ||
"@types/jest": "^26.0.20", | ||
"@types/node": "^14.14.31", | ||
"eslint": "^7.20.0", | ||
"eslint-config-cheminfo-typescript": "^8.0.8", | ||
"jest": "^26.6.3", | ||
"prettier": "^2.2.1", | ||
"rimraf": "^3.0.2", | ||
"ts-jest": "^26.5.2", | ||
"typescript": "^4.2.2" | ||
}, | ||
"dependencies": {}, | ||
"prettier": { | ||
@@ -68,0 +62,0 @@ "arrowParens": "always", |
# iobuffer | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![build status][ci-image]][ci-url] | ||
[![Test coverage][codecov-image]][codecov-url] | ||
@@ -13,3 +13,3 @@ [![npm download][download-image]][download-url] | ||
```console | ||
npm install iobuffer | ||
npm i iobuffer | ||
``` | ||
@@ -28,3 +28,3 @@ | ||
// Pointer offset is 0 | ||
io.writeChars('Hello world') // Write 11 chars, pointer offset now 11 (->15) | ||
io.writeChars('Hello world') // Write 11 chars, pointer offset now 11 | ||
.writeUint32(42) // Write 32-bit int (default is little-endian), pointer offset now 15 | ||
@@ -47,9 +47,9 @@ .setBigEndian() // Switch to big-endian mode | ||
[npm-image]: https://img.shields.io/npm/v/iobuffer.svg?style=flat-square | ||
[npm-image]: https://img.shields.io/npm/v/iobuffer.svg | ||
[npm-url]: https://www.npmjs.com/package/iobuffer | ||
[travis-image]: https://img.shields.io/travis/image-js/iobuffer/master.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/image-js/iobuffer | ||
[codecov-image]: https://img.shields.io/codecov/c/github/image-js/iobuffer.svg?style=flat-square | ||
[ci-image]: https://github.com/image-js/iobuffer/workflows/Node.js%20CI/badge.svg?branch=master | ||
[ci-url]: https://github.com/image-js/iobuffer/actions?query=workflow%3A%22Node.js+CI%22 | ||
[codecov-image]: https://img.shields.io/codecov/c/github/image-js/iobuffer.svg | ||
[codecov-url]: https://codecov.io/gh/image-js/iobuffer | ||
[download-image]: https://img.shields.io/npm/dm/iobuffer.svg?style=flat-square | ||
[download-image]: https://img.shields.io/npm/dm/iobuffer.svg | ||
[download-url]: https://www.npmjs.com/package/iobuffer |
@@ -0,1 +1,2 @@ | ||
// eslint-disable-next-line import/no-unassigned-import | ||
import './text-encoding-polyfill'; | ||
@@ -2,0 +3,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
9
2166
107168