Skip to content

Commit

Permalink
Merge pull request #191 from kwonoj/fix-dep
Browse files Browse the repository at this point in the history
fix(mountbuffer): fix dependencies
  • Loading branch information
kwonoj authored Jun 13, 2019
2 parents 56f42c3 + c1710d5 commit a457465
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 315 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="3.0.1"></a>
## [3.0.1](https://github.com/kwonoj/hunspell-asm/compare/v3.0.0...v3.0.1) (2019-06-13)


### Bug Fixes

* **mountbuffer:** fix dependencies ([a434cd8](https://github.com/kwonoj/hunspell-asm/commit/a434cd8))



<a name="3.0.0"></a>
# [3.0.0](https://github.com/kwonoj/hunspell-asm/compare/v2.0.0...v3.0.0) (2019-06-13)

Expand Down
9 changes: 5 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hunspell-asm",
"version": "3.0.0",
"version": "3.0.1",
"description": "WebAssembly based Javascript bindings for hunspell spellchecker",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down Expand Up @@ -82,7 +82,7 @@
"typescript": "^3.5.1"
},
"dependencies": {
"emscripten-wasm-loader": "^3.0.1",
"emscripten-wasm-loader": "^3.0.2",
"nanoid": "^2.0.3"
},
"engines": {
Expand Down
9 changes: 5 additions & 4 deletions spec/hunspell-asm/hunspellLoader-spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import { mountBuffer, unmount } from 'emscripten-wasm-loader';
import * as nanoid from 'nanoid';
import { HunspellAsmModule } from '../../src/HunspellAsmModule';
import { HunspellFactory } from '../../src/HunspellFactory';
import { hunspellLoader } from '../../src/hunspellLoader';
import { mountBuffer } from '../../src/mountBuffer';
import { unmount } from '../../src/unmount';
import { wrapHunspellInterface } from '../../src/wrapHunspellInterface';

jest.mock('../../src/mountBuffer');
jest.mock('../../src/unmount');
jest.mock('emscripten-wasm-loader', () => ({
mountBuffer: jest.fn(),
unmount: jest.fn()
}));
jest.mock('../../src/wrapHunspellInterface');
jest.mock('nanoid');

Expand Down
81 changes: 0 additions & 81 deletions spec/hunspell-asm/isMounted-spec.ts

This file was deleted.

6 changes: 2 additions & 4 deletions spec/hunspell-asm/loadModule-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ jest.mock('emscripten-wasm-loader', () => ({
isWasmEnabled: jest.fn(),
isNode: jest.fn(),
getModuleLoader: jest.fn(),
ENVIRONMENT: {
WEB: 'WEB',
NODE: 'NODE'
}
mountBuffer: jest.fn(),
unmount: jest.fn()
}));

const getModuleMock = () => ({
Expand Down
55 changes: 0 additions & 55 deletions spec/hunspell-asm/mountBuffer-spec.ts

This file was deleted.

71 changes: 0 additions & 71 deletions spec/hunspell-asm/unmount-spec.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/hunspellLoader.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { mountBuffer, unmount } from 'emscripten-wasm-loader';
import * as nanoid from 'nanoid';
import { HunspellAsmModule } from './HunspellAsmModule';
import { HunspellFactory } from './HunspellFactory';
import { mountBuffer } from './mountBuffer';
import { unmount } from './unmount';
import { log } from './util/logger';
import { wrapHunspellInterface } from './wrapHunspellInterface';

Expand Down
30 changes: 0 additions & 30 deletions src/isMounted.ts

This file was deleted.

31 changes: 0 additions & 31 deletions src/mountBuffer.ts

This file was deleted.

Loading

0 comments on commit a457465

Please sign in to comment.