Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wechat-mini-program-extend

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wechat-mini-program-extend - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

dist/core/RelationsInstaller.js

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

"use strict";function _typeof(e){return(_typeof="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})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _OptionInstaller2=_interopRequireDefault(require("./OptionInstaller")),_common=require("../utils/common"),_Stream=require("../libs/Stream");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(n){var r=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(n);return _possibleConstructorReturn(this,r?(e=_getPrototypeOf(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var PARENT_TAG_OBS="parent-".concat((0,_common.uuid)()),CHILD_TAG_OBS="child-".concat((0,_common.uuid)()),RelationSign=Symbol("__wxREL__"),RTCSign=Symbol("__wxRTC__"),RTCGetterSign=Symbol("__wxRTC_Getter__"),ExecutedDescendantSign=Symbol("__wxEXE_Descendant");function injectParentInstance(e,t){Object.defineProperty(e,"$parent",{configurable:!0,enumerable:!1,get:function(){return t}})}function deleteParentProperty(e){Reflect.deleteProperty(e,"$parent")}function appendChildInstance(e,t){Reflect.has(e,"$children")||Object.defineProperty(e,"$children",{configurable:!1,enumerable:!1,value:[]});var n=Reflect.get(t,"__wxExparserNodeId__");e.$children.some(function(e){return Reflect.get(e,"__wxExparserNodeId__")===n})||e.$children.push(t)}function removeChildInstance(e,t){var n;Reflect.has(e,"$children")&&(n=Reflect.get(t,"__wxExparserNodeId__"),0<=(t=e.$children.findIndex(function(e){return Reflect.get(e,"__wxExparserNodeId__")===n}))&&e.$children.splice(t,1))}var ParentBehavior=Behavior({attached:function(){var t=this,e=getCurrentPages().find(function(e){return Reflect.get(e,"__wxWebviewId__")===Reflect.get(t,"__wxWebviewId__")});Reflect.has(e,RTCGetterSign)?injectParentInstance(this,Reflect.get(e,RTCGetterSign)()):injectParentInstance(this,e)},detached:function(){var t=this;deleteParentProperty(getCurrentPages().find(function(e){return Reflect.get(e,"__wxWebviewId__")===Reflect.get(t,"__wxWebviewId__")}),this)}}),ChildBehavior=Behavior({attached:function(){var t=this;appendChildInstance(getCurrentPages().find(function(e){return Reflect.get(e,"__wxWebviewId__")===Reflect.get(t,"__wxWebviewId__")}),Reflect.get(this,RTCGetterSign)())},detached:function(){var t=this;removeChildInstance(getCurrentPages().find(function(e){return Reflect.get(e,"__wxWebviewId__")===Reflect.get(t,"__wxWebviewId__")}),this)}}),RelationsInstaller=function(){_inherits(t,_OptionInstaller2["default"]);var e=_createSuper(t);function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"getRuntimeContext",value:function(e,t,n){return Reflect.has(e,RTCSign)?Reflect.get(e,RTCSign).get(e,t.get("properties"),t.get("computed"),n):e}},{key:"releaseRuntimeContext",value:function(e){Reflect.has(e,RTCSign)&&(Reflect.get(e,RTCSign).release(),Reflect.deleteProperty(this,RTCSign))}},{key:"definitionFilter",value:function(e,t,n,r,i){r.behaviors=[ParentBehavior,ChildBehavior].concat(r.behaviors||[])}},{key:"relations",value:function(){function a(e){return Reflect.get(e,RTCGetterSign)()}function r(n,r,e,t,i){var o=Reflect.get(r,RelationSign);o&&o[e]&&(!o[e].some(function(e){e=_slicedToArray(e,2)[1];return!(!e.target||!n.hasBehavior(e.target))&&e.target!==ParentBehavior&&e.target!==ChildBehavior})||(e=Reflect.get(n,RelationSign))[t]&&e[t].forEach(function(e){var t=_slicedToArray(e,2),e=t[0],t=t[1];t.target!==ParentBehavior&&t.target!==ChildBehavior&&r.hasBehavior(t.target)&&(0,_common.isFunction)(t[i])&&t[i].call(a(n),a(r),e)}))}var e={};return _defineProperty(e,PARENT_TAG_OBS,{type:"parent",target:ParentBehavior,linked:function(e){injectParentInstance(this,a(e)),r(this,e,"child","parent","linked")},linkChanged:function(e){r(this,e,"child","parent","linkChanged")},unlinked:function(e){r(this,e,"child","parent","unlinked"),deleteParentProperty(this)}}),_defineProperty(e,CHILD_TAG_OBS,{type:"child",target:ChildBehavior,linked:function(e){var t=this,n=getCurrentPages().find(function(e){return Reflect.get(e,"__wxWebviewId__")===Reflect.get(t,"__wxWebviewId__")});appendChildInstance(this,a(e)),removeChildInstance(n,e),r(this,e,"parent","child","linked")},linkChanged:function(e){r(this,e,"parent","child","linkChanged")},unlinked:function(e){r(this,e,"parent","child","unlinked"),removeChildInstance(this,e)}}),e}},{key:"lifetimes",value:function(t,r,i){var o=this;return{created:function(){var e,n=this;Object.defineProperty(this,RTCSign,{configurable:!1,enumerable:!1,value:t.createRuntimeContextSingleton(),writable:!1}),Object.defineProperty(this,RTCGetterSign,{configurable:!1,enumerable:!1,value:function(){return t=(e=n).setData.bind(n),o.getRuntimeContext(e,r,t);var e,t},writable:!1}),Object.defineProperty(this,ExecutedDescendantSign,{configurable:!1,enumerable:!1,value:[],writable:!1}),i.relations&&(e=_Stream.Stream.of(Object.entries(i.relations)).collect(_Stream.Collectors.groupingBy(function(e){return _slicedToArray(e,2)[1].type})),Reflect.set(this,RelationSign,e))},attached:function(){var e=Reflect.get(this,ExecutedDescendantSign);Array.isArray(e)&&e.splice(0)},detached:function(){e=this,o.releaseRuntimeContext(e),Reflect.deleteProperty(this,RTCGetterSign);var e=Reflect.get(this,ExecutedDescendantSign);Array.isArray(e)&&e.splice(0),Reflect.deleteProperty(this,ExecutedDescendantSign)}}}},{key:"install",value:function(e,t,n){var r,l,a;n.relations?(n=(r=_Stream.Stream.of(Object.entries(n.relations)).filter(function(e){e=_slicedToArray(e,2)[1];return"ancestor"===e.type||"descendant"===e.type}).collect(_Stream.Collectors.groupingBy(function(e){return _slicedToArray(e,2)[1].type}))).ancestor,r=r.descendant,l=function(e){return Reflect.get(e,RTCGetterSign)()},a=function(n,r,i,e,t,o){var a=[],c=Reflect.get(r,RelationSign);return c&&c[t]&&(!c[t].some(function(e){e=_slicedToArray(e,2)[1];return!(!e.target||!i.hasBehavior(e.target))&&e.target!==ParentBehavior&&e.target!==ChildBehavior})||(t=Reflect.get(i,RelationSign))[e]&&t[e].forEach(function(e){var t=_slicedToArray(e,2),e=t[0],t=t[1];n.includes(e)||t.target!==ParentBehavior&&t.target!==ChildBehavior&&r.hasBehavior(t.target)&&(0,_common.isFunction)(t[o])&&(a.push(e),t[o].call(l(i),l(r),e))})),a},Array.isArray(n)&&n.forEach(function(e){var e=_slicedToArray(e,2),r=e[0],e=e[1],i=e.linked,n=e.linkChanged,o=e.unlinked;(0,_common.isFunction)(i)&&(e.linked=function(e){var t=Reflect.get(this,ExecutedDescendantSign),n=a(t,this,e,"descendant","ancestor","linked");n.length&&Array.prototype.push.apply(t,n),i.call(l(this),l(e),r)}),(0,_common.isFunction)(n)&&(e.linkChanged=function(e){n.call(l(this),l(e),r);var t=Reflect.get(this,ExecutedDescendantSign),e=a(t,this,e,"descendant","ancestor","linkChanged");e.length&&Array.prototype.push.apply(t,e)}),(0,_common.isFunction)(o)&&(e.unlinked=function(e){o.call(l(this),l(e),r);var t=Reflect.get(this,ExecutedDescendantSign),e=a(t,this,e,"descendant","ancestor","linkChanged");e.length&&Array.prototype.push.apply(t,e)})}),t.set("relations",Object.assign(this.relations(),n?_Stream.Stream.of(n).collect(_Stream.Collectors.toMap()):null,r?_Stream.Stream.of(r).collect(_Stream.Collectors.toMap()):null))):t.set("relations",this.relations())}},{key:"build",value:function(e,t,n){return{relations:t.get("relations")}}}]),t}();exports.default=RelationsInstaller;
"use strict";function _typeof(e){return(_typeof="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})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _OptionInstaller2=_interopRequireDefault(require("./OptionInstaller")),_common=require("../utils/common"),_Stream=require("../libs/Stream");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(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)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(n){var r=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(n);return _possibleConstructorReturn(this,r?(e=_getPrototypeOf(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var PARENT_TAG_OBS="parent-".concat((0,_common.uuid)()),CHILD_TAG_OBS="child-".concat((0,_common.uuid)()),RelationSign=Symbol("__wxREL__"),RTCSign=Symbol("__wxRTC__"),RTCGetterSign=Symbol("__wxRTC_Getter__"),ExecutedDescendantSign=Symbol("__wxEXE_Descendant");function injectParentInstance(e,t){Object.defineProperty(e,"$parent",{configurable:!0,enumerable:!1,get:function(){return t}})}function deleteParentProperty(e){Reflect.deleteProperty(e,"$parent")}function appendChildInstance(e,t){Reflect.has(e,"$children")||Object.defineProperty(e,"$children",{configurable:!1,enumerable:!1,value:[]});var n=Reflect.get(t,"__wxExparserNodeId__");e.$children.some(function(e){return Reflect.get(e,"__wxExparserNodeId__")===n})||e.$children.push(t)}function removeChildInstance(e,t){var n;Reflect.has(e,"$children")&&(n=Reflect.get(t,"__wxExparserNodeId__"),0<=(t=e.$children.findIndex(function(e){return Reflect.get(e,"__wxExparserNodeId__")===n}))&&e.$children.splice(t,1))}var ParentBehavior=Behavior({attached:function(){var t=this,e=getCurrentPages().find(function(e){return Reflect.get(e,"__wxWebviewId__")===Reflect.get(t,"__wxWebviewId__")});Reflect.has(e,RTCGetterSign)?injectParentInstance(this,Reflect.get(e,RTCGetterSign)()):injectParentInstance(this,e)},detached:function(){var t=this;deleteParentProperty(getCurrentPages().find(function(e){return Reflect.get(e,"__wxWebviewId__")===Reflect.get(t,"__wxWebviewId__")}),this)}}),ChildBehavior=Behavior({attached:function(){var t=this;appendChildInstance(getCurrentPages().find(function(e){return Reflect.get(e,"__wxWebviewId__")===Reflect.get(t,"__wxWebviewId__")}),Reflect.get(this,RTCGetterSign)())},detached:function(){var t=this;removeChildInstance(getCurrentPages().find(function(e){return Reflect.get(e,"__wxWebviewId__")===Reflect.get(t,"__wxWebviewId__")}),this)}}),RelationsInstaller=function(){_inherits(t,_OptionInstaller2["default"]);var e=_createSuper(t);function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"getRuntimeContext",value:function(e,t,n){return Reflect.has(e,RTCSign)?Reflect.get(e,RTCSign).get(e,t.get("properties"),t.get("computed"),n):e}},{key:"releaseRuntimeContext",value:function(e){Reflect.has(e,RTCSign)&&(Reflect.get(e,RTCSign).release(),Reflect.deleteProperty(this,RTCSign))}},{key:"definitionFilter",value:function(e,t,n,r,i){r.behaviors=[ParentBehavior,ChildBehavior].concat(r.behaviors||[])}},{key:"relations",value:function(){function a(e){return Reflect.get(e,RTCGetterSign)()}function r(n,r,e,t,i){var o=Reflect.get(r,RelationSign);o&&o[e]&&(!o[e].some(function(e){e=_slicedToArray(e,2)[1];return!(!e.target||!n.hasBehavior(e.target))&&e.target!==ParentBehavior&&e.target!==ChildBehavior})||(e=Reflect.get(n,RelationSign))[t]&&e[t].forEach(function(e){var t=_slicedToArray(e,2),e=t[0],t=t[1];t.target!==ParentBehavior&&t.target!==ChildBehavior&&r.hasBehavior(t.target)&&(0,_common.isFunction)(t[i])&&t[i].call(a(n),a(r),e)}))}var e={};return _defineProperty(e,PARENT_TAG_OBS,{type:"parent",target:ParentBehavior,linked:function(e){injectParentInstance(this,a(e)),r(this,e,"child","parent","linked")},linkChanged:function(e){r(this,e,"child","parent","linkChanged")},unlinked:function(e){r(this,e,"child","parent","unlinked"),deleteParentProperty(this)}}),_defineProperty(e,CHILD_TAG_OBS,{type:"child",target:ChildBehavior,linked:function(e){var t=this,n=getCurrentPages().find(function(e){return Reflect.get(e,"__wxWebviewId__")===Reflect.get(t,"__wxWebviewId__")});appendChildInstance(this,a(e)),removeChildInstance(n,e),r(this,e,"parent","child","linked")},linkChanged:function(e){r(this,e,"parent","child","linkChanged")},unlinked:function(e){r(this,e,"parent","child","unlinked"),removeChildInstance(this,e)}}),e}},{key:"lifetimes",value:function(t,r,i){var o=this;return{created:function(){var e,n=this;Object.defineProperty(this,RTCSign,{configurable:!1,enumerable:!1,value:t.createRuntimeContextSingleton(),writable:!1}),Object.defineProperty(this,RTCGetterSign,{configurable:!1,enumerable:!1,value:function(){return t=(e=n).setData.bind(n),o.getRuntimeContext(e,r,t);var e,t},writable:!1}),Object.defineProperty(this,ExecutedDescendantSign,{configurable:!1,enumerable:!1,value:[],writable:!1}),i.relations&&(e=_Stream.Stream.of(Object.entries(i.relations)).collect(_Stream.Collectors.groupingBy(function(e){return _slicedToArray(e,2)[1].type})),Reflect.set(this,RelationSign,e))},attached:function(){var e=Reflect.get(this,ExecutedDescendantSign);Array.isArray(e)&&e.splice(0)},detached:function(){e=this,o.releaseRuntimeContext(e),Reflect.deleteProperty(this,RTCGetterSign);var e=Reflect.get(this,ExecutedDescendantSign);Array.isArray(e)&&e.splice(0),Reflect.deleteProperty(this,ExecutedDescendantSign)}}}},{key:"install",value:function(e,t,n){var r,l,a;n.relations?(n=(r=_Stream.Stream.of(Object.entries(n.relations)).filter(function(e){e=_slicedToArray(e,2)[1];return"ancestor"===e.type||"descendant"===e.type}).collect(_Stream.Collectors.groupingBy(function(e){return _slicedToArray(e,2)[1].type}))).ancestor,r=r.descendant,l=function(e){return Reflect.get(e,RTCGetterSign)()},a=function(n,r,i,e,t,o){var a=[],c=Reflect.get(r,RelationSign);return c&&c[t]&&(!c[t].some(function(e){e=_slicedToArray(e,2)[1];return!(!e.target||!i.hasBehavior(e.target))&&e.target!==ParentBehavior&&e.target!==ChildBehavior})||(t=Reflect.get(i,RelationSign))[e]&&t[e].forEach(function(e){var t=_slicedToArray(e,2),e=t[0],t=t[1];n.includes(e)||t.target!==ParentBehavior&&t.target!==ChildBehavior&&r.hasBehavior(t.target)&&(0,_common.isFunction)(t[o])&&(a.push(e),t[o].call(l(i),l(r),e))})),a},Array.isArray(n)&&n.forEach(function(e){var e=_slicedToArray(e,2),r=e[0],e=e[1],i=e.linked,n=e.linkChanged,o=e.unlinked;(0,_common.isFunction)(i)&&(e.linked=function(e){var t=Reflect.get(this,ExecutedDescendantSign),n=a(t,this,e,"descendant","ancestor","linked");n.length&&Array.prototype.push.apply(t,n),i.call(l(this),l(e),r)}),(0,_common.isFunction)(n)&&(e.linkChanged=function(e){n.call(l(this),l(e),r);var t=Reflect.get(this,ExecutedDescendantSign),e=a(t,this,e,"descendant","ancestor","linkChanged");e.length&&Array.prototype.push.apply(t,e)}),(0,_common.isFunction)(o)&&(e.unlinked=function(e){o.call(l(this),l(e),r);var t=Reflect.get(this,ExecutedDescendantSign),e=a(t,this,e,"descendant","ancestor","linkChanged");e.length&&Array.prototype.push.apply(t,e)})}),t.set("relations",Object.assign(this.relations(),n?_Stream.Stream.of(n).collect(_Stream.Collectors.toMap()):null,r?_Stream.Stream.of(r).collect(_Stream.Collectors.toMap()):null))):t.set("relations",this.relations())}},{key:"build",value:function(e,t,n){if("string"==typeof __wxAppCurrentFile__&&__wxConfig){var r=__wxAppCurrentFile__.replace(/.js$/,"");if(0<=__wxConfig.pages.indexOf(r))return null}return{relations:t.get("relations")}}}]),t}();exports.default=RelationsInstaller;
{
"name": "wechat-mini-program-extend",
"version": "1.1.3",
"version": "1.1.4",
"repository": "git@github.com:sitorhy/wechat-mini-program-extend.git",

@@ -5,0 +5,0 @@ "author": "sitorhy <sitorhy>",

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