🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

sact

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sact - npm Package Compare versions

Comparing version
0.2.0
to
0.2.1
+1
-1
package.json
{
"name": "sact",
"version": "0.2.0",
"version": "0.2.1",
"description": "this is a MVVM JavaScript framework that use Proxy to reactive data, like Vue3",

@@ -5,0 +5,0 @@ "main": "./src/main.js",

@@ -18,2 +18,10 @@ //运行时使用的dom操作

},
create(tag){
if(tag === "svg" || tag === "path"){
return document.createElementNS('http://www.w3.org/2000/svg',tag);
}
else{
return document.createElement(tag);
}
},
remove(child){

@@ -20,0 +28,0 @@ const parent = child.parentNode;

@@ -392,3 +392,3 @@ import dom from "../api/runtime-dom.js";

const { tag, data, children, key } = vnode;
const rel = (vnode.element = document.createElement(tag));
const rel = (vnode.element = dom.create(tag));

@@ -395,0 +395,0 @@ if (data) {