Skip to content

Commit

Permalink
build was broken because of patronum (?) operator
Browse files Browse the repository at this point in the history
terser doesn't like it
  • Loading branch information
sergeysova committed Nov 20, 2021
1 parent 71da10a commit 0b01deb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"linkifyjs": "^2.1.8",
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1",
"patronum": "^1.6.0-next.0",
"patronum": "^1.1.0",
"prop-types": "^15.7.2",
"react": "^17.0.1",
"react-dom": "^17.0.1"
Expand Down
10 changes: 3 additions & 7 deletions src/editor/init.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import {forward, sample} from 'effector'
import {debounce} from 'patronum/debounce'

import {changeSources, evalFx, selectVersion} from '.'

import {evaluator, versionLoader} from '../evaluator'
import {$babelPluginSettings, $typechecker} from '../settings/state'
import {compress} from './compression'
import {retrieveCode, retrieveVersion} from './retrieve'
import {$sourceCode, $codeError, $version} from './state'
import {$codeError, $sourceCode, $version} from './state'

evalFx.use(evaluator)

Expand Down Expand Up @@ -65,14 +64,11 @@ forward({
to: $sourceCode,
})

const debouncedPluginSettings = debounce({
source: $babelPluginSettings,
timeout: 400,
})
// TODO: use patronum/debounce requires to fix error with ? operator

sample({
source: $sourceCode,
clock: [$sourceCode, versionLoader, $typechecker, debouncedPluginSettings],
clock: [$sourceCode, versionLoader, $typechecker, $babelPluginSettings],
target: evalFx,
})

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4415,10 +4415,10 @@ path-parse@^1.0.6:
resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c"
integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==

patronum@^1.6.0-next.0:
version "1.6.0-next.0"
resolved "https://registry.yarnpkg.com/patronum/-/patronum-1.6.0-next.0.tgz#3e0b87997483f785a94e3657ca238e471ea09f08"
integrity sha512-bDixff9qEyyXSb8VwHP1GxiEZp9TemP4sYxijXE1uydxBLkSzL68puxUUofBL/VjLb/9GIShhrx/V9IQXbOqIQ==
patronum@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/patronum/-/patronum-1.1.0.tgz#6c56f334bfff46042a597cf68deb1540e8134949"
integrity sha512-YSbGQUbLxTO8m4FeXEwg/Xq0h3ka9S3+WvTANHGlNqo+2gPpglex32xh2dzC7ZP0likG/gHQNEOZokNV1nS7HA==

pbkdf2@^3.0.3:
version "3.1.1"
Expand Down

0 comments on commit 0b01deb

Please sign in to comment.