Skip to content

Commit d922efc

Browse files
author
Alex Yang
committed
fix lodash import. publish 1.0.0
1 parent b41ce9b commit d922efc

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Import mock-echo
2222

2323
Replace global object `Echo` with `new MockEcho()` before every unit test
2424
```javascript
25+
26+
let mockEcho
27+
2528
beforeEach(() => {
2629
mockEcho = new MockEcho()
2730
global.Echo = mockEcho

index.js

-1
This file was deleted.

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mock-echo",
3-
"version": "0.0.3",
3+
"version": "1.0.0",
44
"description": "Mock laravel Echo",
55
"main": "dist/index.js",
66
"scripts": {
@@ -26,7 +26,7 @@
2626
"lodash": "^4.17.10"
2727
},
2828
"devDependencies": {
29-
"@types/lodash": "^4.14.93",
29+
"@types/lodash": "^4.14.120",
3030
"@types/node": "^6.0.60",
3131
"typescript": "^2.6.0"
3232
},

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _ from 'lodash'
1+
import * as _ from "lodash";
22

33
class Channel {
44
events: object

0 commit comments

Comments
 (0)