@carlosvpi/mosaic
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -0,1 +1,5 @@ | ||
### 0.0.13 | ||
* Added extra files | ||
### 0.0.12 | ||
@@ -2,0 +6,0 @@ |
@@ -5,4 +5,22 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Mosaic = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){ | ||
const NodeTile_1 = require("./NodeTile"); | ||
// @ts-ignore | ||
module.exports = (tagAttrs, ...objects) => { | ||
const Mosaic = (tagAttrs, ...objects) => { | ||
// if (tagAttrs instanceof Function) { | ||
// const defaults = objects[0] | ||
// return (...attrs) => (...children) => { | ||
// tile = tagAttrs() | ||
// if (typeof children[0] === 'function') { | ||
// let ch, rch | ||
// children[0](list => { | ||
// ch = list; | ||
// tile.children(ch, ch.filter(c => !rch.includes(c))) | ||
// }) | ||
// typeof children[1] === 'function' && children[1](list => { | ||
// rch = list; | ||
// tile.children(ch, ch.filter(c => !rch.includes(c))) | ||
// }) | ||
// return tile | ||
// } | ||
// return tile.children(children) | ||
// } | ||
// } | ||
let tile; | ||
@@ -110,2 +128,4 @@ if (tagAttrs instanceof Element) { | ||
}; | ||
// @ts-ignore | ||
module.exports = Mosaic; | ||
@@ -112,0 +132,0 @@ },{"./NodeTile":2}],2:[function(require,module,exports){ |
@@ -6,3 +6,3 @@ { | ||
"files": ["/src", "/dist"], | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "MVC for the front end", | ||
@@ -9,0 +9,0 @@ "repository": "https://github.com/carlosvpi/mosaic.git", |
import { Element } from './Tile' | ||
import { NodeTile } from './NodeTile' | ||
// @ts-ignore | ||
module.exports = (tagAttrs: TemplateStringsArray | Element, ...objects) => { | ||
const Mosaic = (tagAttrs: TemplateStringsArray | Element, ...objects) => { | ||
// if (tagAttrs instanceof Function) { | ||
// const defaults = objects[0] | ||
// return (...attrs) => (...children) => { | ||
// tile = tagAttrs() | ||
// if (typeof children[0] === 'function') { | ||
// let ch, rch | ||
// children[0](list => { | ||
// ch = list; | ||
// tile.children(ch, ch.filter(c => !rch.includes(c))) | ||
// }) | ||
// typeof children[1] === 'function' && children[1](list => { | ||
// rch = list; | ||
// tile.children(ch, ch.filter(c => !rch.includes(c))) | ||
// }) | ||
// return tile | ||
// } | ||
// return tile.children(children) | ||
// } | ||
// } | ||
let tile: NodeTile | ||
@@ -106,1 +124,4 @@ if (tagAttrs instanceof Element) { | ||
} | ||
// @ts-ignore | ||
module.exports = Mosaic |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
38919
11
782
0