Skip to content

Commit

Permalink
Remove object-assign dependency
Browse files Browse the repository at this point in the history
And use already included polyfill instead
  • Loading branch information
simonbengtsson committed Apr 9, 2020
1 parent 0abbc07 commit 57d3d0d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"jspdf": "^1.5.3",
"mocha": "^7.1.1",
"npm-check-updates": "^4.1.2",
"object-assign": "^4.1.1",
"prettier": "2.0.4",
"ts-loader": "^6.2.2",
"ts-node": "^8.8.2",
Expand Down
3 changes: 1 addition & 2 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ import { defaultConfig, FONT_ROW_RATIO } from './config'
import state from './state'
import { CellHookData, HookData } from './HookData'
import { applyUserStyles, marginOrPadding, styles } from './common'
import { assign } from './polyfills'

declare function require(path: string): any

var assign = require('object-assign')

type HookHandler = (data: HookData) => void | boolean
type CellHookHandler = (data: CellHookData) => void | boolean

Expand Down
3 changes: 1 addition & 2 deletions src/tableDrawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ import {
} from './common'
import { Cell, Row, Table } from './models'
import state from './state'

let assign = require('object-assign')
import { assign } from './polyfills'

export function drawTable(table: Table) {
let settings = table.settings
Expand Down

0 comments on commit 57d3d0d

Please sign in to comment.