@ringcentral/juno 2.12.0 → 2.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
+ // TODO: framer still not have flushSync in there framer version, skip that temporarily
3
+ // import { flushSync } from 'react-dom';
2
4
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var react_dom_1 = require("react-dom");
4
- function conditionalFlushSync(flag) {
5
- return flag ? react_dom_1.flushSync : function (cb) { return cb(); };
5
+ function conditionalFlushSync(
6
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
7
+ flag) {
8
+ // return flag ? flushSync : (cb: () => void) => cb();
9
+ return function (cb) { return cb(); };
6
10
  }
7
11
  exports.default = conditionalFlushSync;
@@ -1,4 +1,8 @@
1
- import { flushSync } from 'react-dom';
2
- export default function conditionalFlushSync(flag) {
3
- return flag ? flushSync : function (cb) { return cb(); };
1
+ // TODO: framer still not have flushSync in there framer version, skip that temporarily
2
+ // import { flushSync } from 'react-dom';
3
+ export default function conditionalFlushSync(
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ flag) {
6
+ // return flag ? flushSync : (cb: () => void) => cb();
7
+ return function (cb) { return cb(); };
4
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ringcentral/juno",
3
- "version": "2.12.0",
3
+ "version": "2.12.1",
4
4
  "author": "RingCentral",
5
5
  "license": "MIT",
6
6
  "main": "./index.js",