Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@goldfishjs/reactive

Package Overview
Dependencies
Maintainers
2
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goldfishjs/reactive - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

4

lib/autorun.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc