Skip to content

Commit c7225d2

Browse files
authored
Merge pull request #10 from apicore-engineering:develop
Replace lodash cloneDeep
2 parents 5804d11 + 1cbc30f commit c7225d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import throttle from 'lodash/throttle';
22
import forIn from 'lodash/forIn';
3-
import cloneDeep from 'lodash/cloneDeep';
43
import set from 'lodash/set';
4+
const cloneDeep = (obj) => JSON.parse(JSON.stringify(obj));
55
const css = `
66
.live-translator-enable-button {
77
position: fixed !important;

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import throttle from 'lodash/throttle'
22
import forIn from 'lodash/forIn'
3-
import cloneDeep from 'lodash/cloneDeep'
43
import set from 'lodash/set'
54

5+
const cloneDeep = (obj: any) => JSON.parse(JSON.stringify(obj))
6+
67
const css = `
78
.live-translator-enable-button {
89
position: fixed !important;

0 commit comments

Comments
 (0)