dist update
This commit is contained in:
		
							parent
							
								
									df1eb84e86
								
							
						
					
					
						commit
						c5899c78b0
					
				|  | @ -1,7 +1,7 @@ | |||
| function Anchor(fasten = {}, mixins = []) { | ||||
| function Anchor(opts = {}) { | ||||
|     const NAMESPACE = `_${Math.random().toString(36).slice(-6)}_`.toUpperCase(); | ||||
| 
 | ||||
|     const GLOBAL = window || global || {}; | ||||
|     const GLOBAL = opts.global || {}; | ||||
| 
 | ||||
|     const register = function register(key, value) { | ||||
|         if (GLOBAL[NAMESPACE] && !GLOBAL[NAMESPACE][key]) { | ||||
|  | @ -11,19 +11,19 @@ function Anchor(fasten = {}, mixins = []) { | |||
|         return false; | ||||
|     }.bind(GLOBAL[NAMESPACE]); | ||||
| 
 | ||||
|     function build(fasten, merges, register) { | ||||
|     function build(opts, register) { | ||||
|         if (GLOBAL[NAMESPACE]) { | ||||
|             return false; | ||||
|         } | ||||
| 
 | ||||
|         GLOBAL[NAMESPACE] = fasten; | ||||
|         GLOBAL[NAMESPACE] = opts.register || {}; | ||||
|         GLOBAL[NAMESPACE]['register'] = register; | ||||
| 
 | ||||
|         merges.forEach((merge) => Object.assign(GLOBAL[NAMESPACE], merge)); | ||||
|         (opts.mixins || []).forEach((mixin) => Object.assign(GLOBAL[NAMESPACE], mixin)); | ||||
| 
 | ||||
|         return GLOBAL[NAMESPACE]; | ||||
|     } | ||||
|     return build(fasten, mixins, register); | ||||
|     return build(opts || {}, register); | ||||
| } | ||||
| 
 | ||||
| export default Anchor; | ||||
|  |  | |||
|  | @ -1 +1 @@ | |||
| function Anchor(n={},r=[]){const t=`_${Math.random().toString(36).slice(-6)}_`.toUpperCase(),o=window||global||{};return function(n,r,e){return!o[t]&&(o[t]=n,o[t].register=e,r.forEach(n=>Object.assign(o[t],n)),o[t])}(n,r,function(n,r){return!(!o[t]||o[t][n])&&(o[t][n]=r)}.bind(o[t]))}export default Anchor; | ||||
| function Anchor(n={}){const r=`_${Math.random().toString(36).slice(-6)}_`.toUpperCase(),t=n.global||{};return function(n,e){return!t[r]&&(t[r]=n.register||{},t[r].register=e,(n.mixins||[]).forEach(n=>Object.assign(t[r],n)),t[r])}(n||{},function(n,e){return!(!t[r]||t[r][n])&&(t[r][n]=e)}.bind(t[r]))}export default Anchor; | ||||
|  | @ -4,10 +4,10 @@ | |||
|     (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.umd = factory()); | ||||
| }(this, (function () { 'use strict'; | ||||
| 
 | ||||
|     function Anchor(fasten = {}, mixins = []) { | ||||
|     function Anchor(opts = {}) { | ||||
|         const NAMESPACE = `_${Math.random().toString(36).slice(-6)}_`.toUpperCase(); | ||||
| 
 | ||||
|         const GLOBAL = window || global || {}; | ||||
|         const GLOBAL = opts.global || {}; | ||||
| 
 | ||||
|         const register = function register(key, value) { | ||||
|             if (GLOBAL[NAMESPACE] && !GLOBAL[NAMESPACE][key]) { | ||||
|  | @ -17,19 +17,19 @@ | |||
|             return false; | ||||
|         }.bind(GLOBAL[NAMESPACE]); | ||||
| 
 | ||||
|         function build(fasten, merges, register) { | ||||
|         function build(opts, register) { | ||||
|             if (GLOBAL[NAMESPACE]) { | ||||
|                 return false; | ||||
|             } | ||||
| 
 | ||||
|             GLOBAL[NAMESPACE] = fasten; | ||||
|             GLOBAL[NAMESPACE] = opts.register || {}; | ||||
|             GLOBAL[NAMESPACE]['register'] = register; | ||||
| 
 | ||||
|             merges.forEach((merge) => Object.assign(GLOBAL[NAMESPACE], merge)); | ||||
|             (opts.mixins || []).forEach((mixin) => Object.assign(GLOBAL[NAMESPACE], mixin)); | ||||
| 
 | ||||
|             return GLOBAL[NAMESPACE]; | ||||
|         } | ||||
|         return build(fasten, mixins, register); | ||||
|         return build(opts || {}, register); | ||||
|     } | ||||
| 
 | ||||
|     return Anchor; | ||||
|  |  | |||
|  | @ -1 +1 @@ | |||
| !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define("umd",n):(e="undefined"!=typeof globalThis?globalThis:e||self).umd=n()}(this,function(){"use strict";return function(e={},n=[]){const t=`_${Math.random().toString(36).slice(-6)}_`.toUpperCase(),o=window||global||{};return function(e,n,i){return!o[t]&&(o[t]=e,o[t].register=i,n.forEach(e=>Object.assign(o[t],e)),o[t])}(e,n,function(e,n){return!(!o[t]||o[t][e])&&(o[t][e]=n)}.bind(o[t]))}}); | ||||
| !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define("umd",n):(e="undefined"!=typeof globalThis?globalThis:e||self).umd=n()}(this,function(){"use strict";return function(e={}){const n=`_${Math.random().toString(36).slice(-6)}_`.toUpperCase(),t=e.global||{};return function(e,i){return!t[n]&&(t[n]=e.register||{},t[n].register=i,(e.mixins||[]).forEach(e=>Object.assign(t[n],e)),t[n])}(e||{},function(e,i){return!(!t[n]||t[n][e])&&(t[n][e]=i)}.bind(t[n]))}}); | ||||
		Loading…
	
		Reference in New Issue