New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@futura/virtual-dom

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@futura/virtual-dom - npm Package Compare versions

Comparing version 0.4.0-alpha.4 to 0.4.0-alpha.5

24

lib.cjs/types.js

@@ -5,5 +5,5 @@ "use strict";

(function (VNode) {
VNode.isVText = function (value) { return value && value.$type === 0 /* Text */; };
VNode.isVElement = function (value) { return value && value.$type === 1 /* Element */; };
VNode.isVThunk = function (value) { return value && value.$type === 2 /* Thunk */; };
VNode.isVText = function (value) { return value && value.$type === 1 /* Text */; };
VNode.isVElement = function (value) { return value && value.$type === 2 /* Element */; };
VNode.isVThunk = function (value) { return value && value.$type === 3 /* Thunk */; };
VNode.isVNode = function (value) { return VNode.isVText(value) || VNode.isVElement(value) || VNode.isVThunk(value); };

@@ -14,3 +14,3 @@ })(VNode = exports.VNode || (exports.VNode = {}));

this.content = content;
this.$type = 0 /* Text */;
this.$type = 1 /* Text */;
}

@@ -26,3 +26,3 @@ return VText;

this.children = children;
this.$type = 1 /* Element */;
this.$type = 2 /* Element */;
}

@@ -35,5 +35,5 @@ return VElement;

(function (Data) {
Data.isAttr = function (value) { return value && value.$type === 0 /* Attr */; };
Data.isEventHandler = function (value) { return value && value.$type === 1 /* EventHandler */; };
Data.isProp = function (value) { return value && value.$type === 2 /* Prop */; };
Data.isAttr = function (value) { return value && value.$type === 100 /* Attr */; };
Data.isEventHandler = function (value) { return value && value.$type === 101 /* EventHandler */; };
Data.isProp = function (value) { return value && value.$type === 102 /* Prop */; };
})(Data = VElement.Data || (VElement.Data = {}));

@@ -45,3 +45,3 @@ var Attr = /** @class */ (function () {

this.value = value;
this.$type = 0 /* Attr */;
this.$type = 100 /* Attr */;
}

@@ -55,3 +55,3 @@ return Attr;

this.value = value;
this.$type = 2 /* Prop */;
this.$type = 102 /* Prop */;
}

@@ -67,3 +67,3 @@ return Prop;

this.options = options;
this.$type = 1 /* EventHandler */;
this.$type = 101 /* EventHandler */;
}

@@ -93,3 +93,3 @@ EventHandler.prototype.listener = function (dispatch) {

function VThunk(thunk, args) {
this.$type = 2 /* Thunk */;
this.$type = 3 /* Thunk */;
this.thunk = thunk;

@@ -96,0 +96,0 @@ this.args = args;

export var VNode;
(function (VNode) {
VNode.isVText = function (value) { return value && value.$type === 0 /* Text */; };
VNode.isVElement = function (value) { return value && value.$type === 1 /* Element */; };
VNode.isVThunk = function (value) { return value && value.$type === 2 /* Thunk */; };
VNode.isVText = function (value) { return value && value.$type === 1 /* Text */; };
VNode.isVElement = function (value) { return value && value.$type === 2 /* Element */; };
VNode.isVThunk = function (value) { return value && value.$type === 3 /* Thunk */; };
VNode.isVNode = function (value) { return VNode.isVText(value) || VNode.isVElement(value) || VNode.isVThunk(value); };

@@ -11,3 +11,3 @@ })(VNode || (VNode = {}));

this.content = content;
this.$type = 0 /* Text */;
this.$type = 1 /* Text */;
}

@@ -23,3 +23,3 @@ return VText;

this.children = children;
this.$type = 1 /* Element */;
this.$type = 2 /* Element */;
}

@@ -32,5 +32,5 @@ return VElement;

(function (Data) {
Data.isAttr = function (value) { return value && value.$type === 0 /* Attr */; };
Data.isEventHandler = function (value) { return value && value.$type === 1 /* EventHandler */; };
Data.isProp = function (value) { return value && value.$type === 2 /* Prop */; };
Data.isAttr = function (value) { return value && value.$type === 100 /* Attr */; };
Data.isEventHandler = function (value) { return value && value.$type === 101 /* EventHandler */; };
Data.isProp = function (value) { return value && value.$type === 102 /* Prop */; };
})(Data = VElement.Data || (VElement.Data = {}));

@@ -42,3 +42,3 @@ var Attr = /** @class */ (function () {

this.value = value;
this.$type = 0 /* Attr */;
this.$type = 100 /* Attr */;
}

@@ -52,3 +52,3 @@ return Attr;

this.value = value;
this.$type = 2 /* Prop */;
this.$type = 102 /* Prop */;
}

@@ -64,3 +64,3 @@ return Prop;

this.options = options;
this.$type = 1 /* EventHandler */;
this.$type = 101 /* EventHandler */;
}

@@ -89,3 +89,3 @@ EventHandler.prototype.listener = function (dispatch) {

function VThunk(thunk, args) {
this.$type = 2 /* Thunk */;
this.$type = 3 /* Thunk */;
this.thunk = thunk;

@@ -92,0 +92,0 @@ this.args = args;

{
"name": "@futura/virtual-dom",
"version": "0.4.0-alpha.4",
"version": "0.4.0-alpha.5",
"description": "Virtual DOM implementation for futura",

@@ -64,3 +64,3 @@ "keywords": [

},
"gitHead": "17855b93cb5729ea3c9d6e00f6d4f55da73cd279"
"gitHead": "03546ef1af02b0a6061ed6c277b9410f0c268359"
}

@@ -5,5 +5,5 @@ import { Dispatch } from "@futura/core";

const enum Type {
Text = 0,
Element = 1,
Thunk = 2
Text = 1,
Element = 2,
Thunk = 3
}

@@ -34,5 +34,5 @@ const isVText: (value: any) => value is VText;

const enum Type {
Attr = 0,
EventHandler = 1,
Prop = 2
Attr = 100,
EventHandler = 101,
Prop = 102
}

@@ -39,0 +39,0 @@ const isAttr: (value: any) => value is Attr;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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