Skip to content

Commit 3250713

Browse files
refactor(overmind): replace is-plain-object with is-plain-obj
1 parent 184f2a5 commit 3250713

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"electron-json-storage": "4.1.0",
3232
"express": "4.16.3",
3333
"install": "0.12.1",
34-
"is-plain-object": "2.0.4",
34+
"is-plain-obj": "1.1.0",
3535
"marksy": "6.1.0",
3636
"npm": "6.3.0",
3737
"page": "1.8.6",

packages/node_modules/overmind/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
],
3434
"dependencies": {
3535
"@types/node": "^10.5.1",
36-
"is-plain-object": "^2.0.4",
36+
"is-plain-obj": "^1.1.0",
3737
"betsy": "next",
3838
"proxy-state-tree": "next",
3939
"tslib": "^1.9.3"

packages/node_modules/overmind/src/Devtools.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { IS_PROXY } from 'proxy-state-tree'
2-
// Needed due to Parcel + Webpack support
3-
const isPlainObject = require('is-plain-object')
2+
import * as isPlainObject from 'is-plain-obj'
43

54
export type Message = {
65
type: string

packages/node_modules/overmind/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { EventEmitter } from 'betsy'
2+
import * as isPlainObject from 'is-plain-obj'
23
import { IS_PROXY, ProxyStateTree, TTree, IMutation } from 'proxy-state-tree'
34
import { Derived } from './derived'
45
import { Devtools, Message, safeValue, safeValues } from './Devtools'
@@ -41,7 +42,6 @@ export type Derive<Parent extends TStateObject, Value> = TDerive<
4142

4243
export type OnInitialize = TOnInitialize<TheConfig>
4344

44-
const isPlainObject = require('is-plain-object')
4545
const IS_PRODUCTION = process.env.NODE_ENV === 'production'
4646
const IS_DEVELOPMENT = process.env.NODE_ENV === 'development'
4747
const IS_OPERATOR = Symbol('operator')

packages/node_modules/proxy-state-tree/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { IS_PROXY, VALUE, PATH, Proxifier } from './Proxyfier'
2+
import * as isPlainObject from 'is-plain-obj'
23
import {
34
IMutation,
45
ITrackMutationTree,
@@ -13,7 +14,6 @@ import {
1314
} from './types'
1415
import { TrackMutationTree } from './TrackMutationTree'
1516
import { TrackStateTree } from './TrackStateTree'
16-
const isPlainObject = require('is-plain-object')
1717
const IS_PRODUCTION = process.env.NODE_ENV === 'production'
1818

1919
export {

0 commit comments

Comments
 (0)