@goldfishjs/reactive
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -1,3 +0,3 @@ | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import { call, getCurrent } from './dep'; | ||
@@ -4,0 +4,0 @@ |
@@ -1,2 +0,2 @@ | ||
import _typeof from "@babel/runtime/helpers/typeof"; | ||
import _typeof from "@babel/runtime/helpers/typeof.js"; | ||
import { call, getCurrent, Dep } from './dep'; | ||
@@ -14,3 +14,3 @@ var FLAG_KEY = '__reactive-cpt__'; | ||
function isFullComputedValue(x) { | ||
return _typeof(x) === 'object' && (isGetter(x.get) || isSetter(x.set)); | ||
return x !== null && _typeof(x) === 'object' && (isGetter(x.get) || isSetter(x.set)); | ||
} | ||
@@ -17,0 +17,0 @@ |
@@ -1,3 +0,3 @@ | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
@@ -4,0 +4,0 @@ function defaultIsChanged(n, o) { |
@@ -1,2 +0,2 @@ | ||
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray.js"; | ||
import watchDeep from './watchDeep'; | ||
@@ -3,0 +3,0 @@ export default function reactive(setData, onError) { |
@@ -1,2 +0,2 @@ | ||
import _defineProperty from "@babel/runtime/helpers/defineProperty"; | ||
import _defineProperty from "@babel/runtime/helpers/defineProperty.js"; | ||
var SILENT_FLAG = {}; | ||
@@ -3,0 +3,0 @@ var SILENT_KEY = '__silent__'; |
@@ -1,2 +0,2 @@ | ||
import _typeof from "@babel/runtime/helpers/typeof"; | ||
import _typeof from "@babel/runtime/helpers/typeof.js"; | ||
export function isObject(v) { | ||
@@ -3,0 +3,0 @@ return _typeof(v) === 'object' && v !== null; |
@@ -1,3 +0,3 @@ | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import { call, getCurrent } from './dep'; | ||
@@ -4,0 +4,0 @@ import { isObject, isArray } from './utils'; |
@@ -1,5 +0,5 @@ | ||
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import _createClass from "@babel/runtime/helpers/createClass"; | ||
import _typeof from "@babel/runtime/helpers/typeof"; | ||
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray.js"; | ||
import _classCallCheck from "@babel/runtime/helpers/classCallCheck.js"; | ||
import _createClass from "@babel/runtime/helpers/createClass.js"; | ||
import _typeof from "@babel/runtime/helpers/typeof.js"; | ||
import watch from './watch'; | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "@goldfishjs/reactive", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Reactive.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -27,3 +27,3 @@ import { call, getCurrent, Dep, DepList } from './dep'; | ||
function isFullComputedValue(x: any): x is FullComputedValue { | ||
return typeof x === 'object' | ||
return x !== null && typeof x === 'object' | ||
&& (isGetter(x.get) || isSetter(x.set)); | ||
@@ -30,0 +30,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
51715