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

doz

Package Overview
Dependencies
Maintainers
1
Versions
248
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doz - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

dist/doz.js

@@ -1,2 +0,2 @@

// [AIV_SHORT] Doz Build version: 0.0.1
// [AIV_SHORT] Doz Build version: 0.0.2
(function webpackUniversalModuleDefinition(root, factory) {

@@ -3,0 +3,0 @@ if(typeof exports === 'object' && typeof module === 'object')

@@ -1,2 +0,2 @@

// [AIV_SHORT] Doz Build version: 0.0.1
// [AIV_SHORT] Doz Build version: 0.0.2
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Doz",[],t):"object"==typeof exports?exports.Doz=t():e.Doz=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=8)}([function(e,t,n){"use strict";e.exports={ROOT:"__DOZ_GLOBAL_COMPONENTS__",TAG:{ROOT:"doz-root",VIEW:"doz-view-component"},REGEX:{IS_CUSTOM_TAG:/^\w+-[\w-]+$/,IS_BIND:/^d-bind$/,IS_ALIAS:/^d-alias$/,IS_REF:/^d-ref$/,IS_LISTENER:/^on/,IS_ID_SELECTOR:/^#[\w-_:.]+$/,GET_LISTENER:/^this.(.*)\((.*)\)/},ATTR:{BIND:"d-bind",ALIAS:"d-alias",REF:"d-ref"}}},function(e,t,n){"use strict";function r(){return window[f]=window[f]||{components:{}},window[f].components}function o(e){var t=r(),n=e.tag.toUpperCase();if(t.hasOwnProperty(n))throw new Error("Component "+n+" already defined");t[n]=e}function i(){window[f]&&(window[f].components={})}function u(e){if("string"!=typeof e)throw new TypeError("tag must be a string");return e=e.toUpperCase(),r()[e]}var a=n(0),f=a.ROOT;e.exports={register:o,get:u,removeAll:i}},function(e,t,n){"use strict";function r(e){if("string"!=typeof e)return e;switch(e){case"undefined":return;case"null":return null;case"NaN":return NaN;case"Infinity":return 1/0;case"true":return!0;case"false":return!1;default:try{return JSON.parse(e)}catch(e){}}var t=parseFloat(e);return!isNaN(t)&&isFinite(e)?0===e.toLowerCase().indexOf("0x")?parseInt(e,16):t:e}e.exports=r},function(e,t,n){"use strict";(function(e){var n,r,o,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(u,a){"object"===i(t)&&"object"===i(e)?e.exports=a():(r=[],n=a,void 0!==(o="function"==typeof n?n.apply(t,r):n)&&(e.exports=o))}("undefined"!=typeof self&&self,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){var r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":i(e)},o=n(2),u=function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(var i in n)n.hasOwnProperty(i)&&-1===o.indexOf(i)&&(t.hasOwnProperty(i)&&void 0!==t[i]?"object"===r(t[i])&&e(t[i],n[i]):t[i]=n[i]);return t},a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[0]=o(t[0]),u.apply(void 0,t)};e.exports=u,e.exports.copy=a},function(e,t,n){var r,o,u="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":i(e)};!function(i,a,f){"object"===u(t)?e.exports=f():(r=f,void 0!==(o="function"==typeof r?r.call(t,n,t,e):r)&&(e.exports=o))}(0,0,function(){function e(e,t,n){return e instanceof Array?(e.push(n),e[e.length-1]):e instanceof Object?(e[t]=n,e[t]):void 0}return function(t){function n(t,r){for(var o in t){var i=t[o];if(i instanceof Date){var u=new Date(i.getTime());e(r,o,u)}else if(i instanceof Function){var u=i;e(r,o,u)}else if(i instanceof Array){var u=[],a=e(r,o,u);n(i,a)}else if(i instanceof Object){var u={},a=e(r,o,u);n(i,a)}else{var u=i;e(r,o,u)}}}if(/number|string|boolean/.test(void 0===t?"undefined":u(t)))return t;if(t instanceof Date)return new Date(t.getTime());var r=t instanceof Array?[]:{};return n(t,r),r}})}])})}).call(t,n(11)(e))},function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new TypeError("Tag must be a string");if(!s.IS_CUSTOM_TAG.test(e))throw new TypeError("Tag must contain a dash (-): my-component");var n={};n.tag=e,n.cfg=u.copy(t,{template:function(){return"<div></div>"},props:{}}),f(n)}function o(e,t,n){t="string"==typeof t?c.create(t):t;var r=c.getAllNodes(t),u={},a=0;return r.forEach(function(t){if(1===t.nodeType&&t.parentNode){var r=y.get(t.nodeName)||n[t.nodeName.toLowerCase()];if(r){var f=a;a++;var c=g(t);c.hasOwnProperty(p.ALIAS)&&(f=c[p.ALIAS],delete c[p.ALIAS]);var l=i(r,{root:e,props:c});t.parentNode.removeChild(t),l.render(),v.callRender(l),u[f]=l;var m=l._rootElement.querySelectorAll("*");Array.from(m).forEach(function(e){if(s.IS_CUSTOM_TAG.test(e.nodeName)&&e.nodeName.toLowerCase()!==d.ROOT){var t=e.outerHTML,r=document.createElement(e.nodeName);e.parentNode.replaceChild(r,e);var i=o(r,t,n);Object.keys(i).forEach(function(e){var t=e;l.children.hasOwnProperty(t)&&"number"==typeof x(t)&&t++,l.children[t]=i[e]})}})}}}),u}function i(e,t){var n=u.copy(t.props,"function"==typeof e.cfg.props?e.cfg.props():e.cfg.props),r=!1,o=Object.defineProperties({},{_prev:{value:null,writable:!0},_prevProps:{value:null,writable:!0},_rootElement:{value:null,writable:!0},_boundElements:{value:{},writable:!0},ref:{value:{},writable:!0,enumerable:!0},children:{value:{},writable:!0,enumerable:!0},tag:{value:e.tag,enumerable:!0},each:{value:function(e,t){if(Array.isArray(e))return e.map(t).join("")},enumerable:!0},render:{value:function(){var e=c.create("<"+d.ROOT+">"+this.template()+"</"+d.ROOT+">"),n=h(e),r=E(t.root,n,this._prev,0,this);!this._rootElement&&r&&(this._rootElement=r),this._prev=n},enumerable:!0},destroy:{value:function(){this._rootElement&&(this._rootElement.parentNode.removeChild(this._rootElement),v.callDestroy(this))},enumerable:!0}});return Object.assign(o,e.cfg),o.props=m.create(n,!0,function(e){o.render(),e.forEach(function(e){o._boundElements.hasOwnProperty(e.property)&&o._boundElements[e.property].forEach(function(t){t.value=e.newValue})}),r&&v.callUpdate(o)}),m.beforeChange(o.props,function(){if(!1===v.callBeforeUpdate(Object.assign({},o.props)))return!1}),v.callCreate(o),r=!0,o}var u=n(3),a=n(1),f=a.register,c=n(5),l=n(0),s=l.REGEX,p=l.ATTR,d=l.TAG,y=n(1),m=n(12),v=n(13),b=n(6),h=b.transform,g=b.serializeProps,E=n(7).updateElement,x=n(2);e.exports={component:r,getInstances:o}},function(e,t,n){"use strict";var r={create:function(e){var t=void 0;if(e=e.replace(/\n|\s{2,}/g," "),e=e.replace(/[\t\r]/g,""),e=e.replace(/>(\s+)</g,"><"),e=e.trim(),/<.*>/g.test(e)){var n=document.createElement("div");n.innerHTML=e,t=n.firstChild}else t=document.createElement(e);if(!this.isValidNode(t))throw new Error("Element not valid");return t},isValidNode:function(e){return e&&"nodeType"in e},getAllNodes:function(e){function t(e){do{n.push(e),e.hasChildNodes()&&t(e.firstChild)}while(e=e.nextSibling)}var n=[];return t(e),n}};e.exports=r},function(e,t,n){"use strict";function r(e){var t={};return e.attributes.length&&Array.from(e.attributes).forEach(function(e){t[e.name]=""===e.nodeValue||i(e.nodeValue)}),t}function o(e){function t(e,o){do{var i=void 0;3===e.nodeType?i=e.nodeValue:(i={},i.type=e.nodeName.toLowerCase(),i.children=[],i.props=r(e)),Object.keys(n).length||(n=i),o&&o.children&&o.children.push(i),e.hasChildNodes()&&t(e.firstChild,i)}while(e=e.nextSibling)}var n={};return t(e,n),n}var i=n(2);e.exports={transform:o,serializeProps:r}},function(e,t,n){"use strict";function r(e){return _.IS_LISTENER.test(e)}function o(e){return e===S.BIND}function i(e){return e===S.REF}function u(e){return-1!==["INPUT","TEXTAREA"].indexOf(e.nodeName)}function a(e){return r(e)||o(e)||i(e)||"forceUpdate"===e}function f(e,t,n){n?(e.setAttribute(t,n),e[t]=!0):e[t]=!1}function c(e,t){e.removeAttribute(t),e[t]=!1}function l(e){return e.slice(2).toLowerCase()}function s(e,t,n){if(a(t));else if("className"===t)e.setAttribute("class",n);else if("boolean"==typeof n)f(e,t,n);else if("object"===(void 0===n?"undefined":w(n)))try{e.setAttribute(t,JSON.stringify(n))}catch(e){}else e.setAttribute(t,n)}function p(e,t,n){a(t)||("className"===t?e.removeAttribute("class"):"boolean"==typeof n?c(e,t):e.removeAttribute(t))}function d(e,t,n,r){n?r&&n===r||s(e,t,n):p(e,t,r)}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.assign({},t,n);Object.keys(r).forEach(function(r){d(e,r,t[r],n[r])})}function m(e,t,n,o){if(r(t)){var i=n.match(_.GET_LISTENER);if(i){var u=null,a=i[1],f=i[2];f&&(u=f.split(",").map(function(e){return T(e.trim())})),a in o&&(n=u?o[a].bind(o,u):o[a].bind(o))}e.addEventListener(l(t),n)}}function v(e,t,n,r){o(t)&&u(e)&&void 0!==r.props[n]&&(["compositionstart","compositionend","input","change"].forEach(function(t){e.addEventListener(t,function(){r.props[n]=this.value})}),r._boundElements.hasOwnProperty(n)?r._boundElements[n].push(e):r._boundElements[n]=[e])}function b(e,t,n,r){i(t)&&(r.ref[n]=e)}function h(e,t,n){Object.keys(t).forEach(function(r){s(e,r,t[r]),m(e,r,t[r],n),v(e,r,t[r],n),b(e,r,t[r],n)})}function g(e,t){if("string"==typeof e)return document.createTextNode(e);var n=document.createElement(e.type);return h(n,e.props,t),e.children.map(function(e){return g(e,t)}).forEach(n.appendChild.bind(n)),n}function E(e,t){return(void 0===e?"undefined":w(e))!==(void 0===t?"undefined":w(t))||"string"==typeof e&&e!==t||e.type!==t.type||e.props&&e.props.forceUpdate}function x(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments[4];if(e){if(!n){var i=g(t,o);return e.appendChild(i),i}if(t){if(E(t,n)){var u=g(t,o);return e.replaceChild(u,e.childNodes[r]),u}if(t.type){y(e.childNodes[r],t.props,n.props);for(var a=t.children.length,f=n.children.length,c=0;c<a||c<f;c++)x(e.childNodes[r],t.children[c],n.children[c],c,o)}}else e.childNodes[r]&&e.removeChild(e.childNodes[r])}}var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O=n(0),_=O.REGEX,S=O.ATTR,T=n(2);e.exports={updateElement:x}},function(e,t,n){"use strict";e.exports=n(9)},function(e,t,n){"use strict";e.exports=n(10),e.exports.component=n(4).component,e.exports.collection=n(1),e.exports.update=n(7).updateElement,e.exports.transform=n(6).transform,e.exports.html=n(5)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(3),a=n(4),f=n(0),c=f.TAG,l=f.REGEX,s=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e);var i="<"+c.VIEW+"></"+c.VIEW+">";if(l.IS_ID_SELECTOR.test(n.root)&&(n.root=document.getElementById(n.root.substring(1))),l.IS_ID_SELECTOR.test(n.template)&&(n.template=document.getElementById(n.template.substring(1)),n.template=n.template.innerHTML),!(n.root instanceof HTMLElement))throw new TypeError("root must be an HTMLElement or an valid ID selector like #example-root");if(!(n.template instanceof HTMLElement||"string"==typeof n.template))throw new TypeError("template must be a string or an HTMLElement or an valid ID selector like #example-template");this.cfg=u(n,{components:[],_components:{}}),this.cfg.components.forEach(function(e){"object"===(void 0===e?"undefined":o(e))&&"string"==typeof e.tag&&"object"===o(e.cfg)&&(t.cfg._components[e.tag]=e)}),this.cfg._components[c.VIEW]={cfg:{props:{},template:function(){return n.template}}},this._usedComponents=a.getInstances(this.cfg.root,i,this.cfg._components)||[]}return i(e,[{key:"getComponent",value:function(e){return this._usedComponents[0].children[e]}}]),e}();e.exports=s},function(e,t,n){"use strict";e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){var e=[],t=[],n=[],o=[],i=null,u=null,a=function(e,t){return t.split(".").reduce(function(e,t){return e?e[t]:void 0},e||self)},f=function f(c,l,s,p){var d=s||null,y=p||"",m=[],v=function(e,t){return e instanceof Array?""!==y?y:t:""!==y?y+"."+t:t},b=function(e){if(!0!==d.paused)if(!0===l)setTimeout(function(){if(e===m.length){for(var t=0;t<d.observers.length;t++)d.observers[t](m);m=[]}},10);else{for(var t=0;t<d.observers.length;t++)d.observers[t](m);m=[]}},h={get:function(e,r){if("__isProxy"===r)return!0;if("__getTarget"===r)return e;if("__getParent"===r)return function(t){if(void 0===t)var t=1;var n=v(e,"__getParent").split(".");return n.splice(-(t+1),t+1),a(d.proxy,n.join("."))};var u=e[r];if(o.push(d),null===i){i=d;var c=t.indexOf(e),s=n[c],p=s.length;if(p>1)for(;p--;)-1===o.indexOf(s[p].observable)&&s[p].proxy[r];i=null,o=[]}if(u instanceof Object&&null!==u&&e.hasOwnProperty(r)&&void 0===u.__isProxy){var c=t.indexOf(u);if(c>-1)for(var m=n[c],p=m.length;p--;)if(m[p].observable===d)return m[p].proxy;return f(u,l,d,""!==y?y+"."+r:r)}return u},deleteProperty:function(e,r){var o=!0;u===g&&(o=!1,u=null);var i=Object.assign({},e),a=v(e,r);if(m.push({type:"delete",target:e,property:r,newValue:null,previousValue:i[r],currentPath:a,proxy:g}),"function"==typeof d.beforeChange){if(!1===d.beforeChange(m))return!1}if(!0===o){var f=t.indexOf(e);if(f>-1)for(var c=n[f].length;c--;)n[f][c].proxy!==g&&(u=n[f][c].proxy,delete n[f][c].proxy[r]);delete e[r]}return b(m.length),!0},set:function(e,o,i,a){var f=!0;u===g&&(f=!1,u=null);var c=e[o];if(c!==i||!1===f){var l=void 0===c?"undefined":r(c),s=v(e,o),p="update";if("undefined"===l&&(p="add"),m.push({type:p,target:e,property:o,newValue:i,previousValue:a[o],currentPath:s,proxy:g}),"function"==typeof d.beforeChange){if(!1===d.beforeChange(m))return!1}if(!0===f){var y=t.indexOf(e);if(y>-1)for(var h=n[y],E=h.length;E--;)h[E].proxy!==g&&(u=h[E].proxy,h[E].proxy[o]=i);setTimeout(function(){l instanceof Object&&function e(r){for(var o in r){var i=r[o];i instanceof Object&&null!==i&&e(i)}var u=t.indexOf(r);if(u>-1){for(var a=n[u],f=a.length;f--;)if(d===a[f].observable){a.splice(f,1);break}0==a.length&&(n.splice(u,1),t.splice(u,1))}}(c)},1e4),e[o]=i}b(m.length)}return!0}},g=new Proxy(c,h);null===d&&(d={target:c,domDelay:l,proxy:g,observers:[],paused:!1,path:y},e.push(d));var E={target:c,proxy:g,observable:d},x=t.indexOf(c);return x>-1?n[x].push(E):(t.push(c),n.push([E])),g};return{create:function(e,t,n){if(!0===e.__isProxy)var e=e.__getTarget;var r=f(e,t);return"function"==typeof n&&this.observe(r,n),r},observe:function(t,n){for(var r=e.length;r--;)if(e[r].proxy===t){e[r].observers.push(n);break}},pause:function(t){for(var n=e.length,r=!1;n--;)if(e[n].proxy===t){e[n].paused=!0,r=!0;break}if(0==r)throw new Error("ObseravableSlim could not pause observable -- matching proxy not found.")},resume:function(t){for(var n=e.length,r=!1;n--;)if(e[n].proxy===t){e[n].paused=!1,r=!0;break}if(0==r)throw new Error("ObseravableSlim could not resume observable -- matching proxy not found.")},remove:function(r){for(var o=null,i=!1,u=e.length;u--;)if(e[u].proxy===r){o=e[u],i=!0;break}for(var a=n.length;a--;)for(var f=n[a].length;f--;)n[a][f].observable===o&&(n[a].splice(f,1),0==n[a].length&&(n.splice(a,1),t.splice(a,1)));!0===i&&e.splice(u,1)},beforeChange:function(t,n){if("function"!=typeof n)throw new Error("Callback function is required");for(var r=e.length,o=!1;r--;)if(e[r].proxy===t){e[r].beforeChange=n,o=!0;break}if(0==o)throw new Error("ObseravableSlim -- matching proxy not found.")}}}();try{e.exports=o}catch(e){}},function(e,t,n){"use strict";function r(e){"function"==typeof e.onCreate&&e.onCreate.call(e)}function o(e){"function"==typeof e.onRender&&e.onRender.call(e)}function i(e){if("function"==typeof e.onBeforeUpdate)return e.onBeforeUpdate.call(e)}function u(e){"function"==typeof e.onUpdate&&e.onUpdate.call(e)}function a(e){"function"==typeof e.onDestroy&&(e.onDestroy.call(e),e=null)}e.exports={callCreate:r,callRender:o,callBeforeUpdate:i,callUpdate:u,callDestroy:a}}])});
{
"name": "doz",
"version": "0.0.1",
"version": "0.0.2",
"description": "Build UI, so simple",

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

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