@morjs/runtime-mini
Advanced tools
Comparing version 1.0.113 to 1.0.114-alpha.0
import { __assign, __spreadArray } from "tslib"; | ||
import { Base64, compose, generateId, getSharedProperty, logger } from '@morjs/runtime-base'; | ||
import { compose, generateId, getSharedProperty, logger, Pairs } from '@morjs/runtime-base'; | ||
import clone from 'clone-deep'; | ||
@@ -10,3 +10,3 @@ import { injectHasMixinSupport } from '../common/behaviorOrMixin'; | ||
*/ | ||
var MOR_EVENT_HANDLERS_DATASET = "".concat(MOR_PREFIX, "EventHandlers"); | ||
var MOR_EVENT_HANDLERS_DATASET = "meh"; | ||
/** | ||
@@ -431,3 +431,3 @@ * 用于保存事件代理相关方法名称映射 | ||
// 触发小程序原生事件 | ||
// 事件会被 $morEventHandlerProxy 事件代理方法捕获 | ||
// 事件会被 $morEHP 事件代理方法捕获 | ||
// 并触发 event 事件, 基于 eventId | ||
@@ -453,3 +453,3 @@ _this.triggerEvent(triggerEventName, { | ||
try { | ||
this[MOR_EVENT_HANDLERS] = JSON.parse(Base64.decode(morEventHandlers)); | ||
this[MOR_EVENT_HANDLERS] = Pairs.toObject(morEventHandlers); | ||
// ref 支持 | ||
@@ -456,0 +456,0 @@ if (this[MOR_EVENT_HANDLERS].ref) { |
@@ -12,3 +12,3 @@ import { getSharedProperty, logger } from '@morjs/runtime-base'; | ||
*/ | ||
options.$morEventHandlerProxy = function (event) { | ||
options.$morEHP = function (event) { | ||
var _a = event.detail, name = _a.name, args = _a.args, id = _a.id; | ||
@@ -15,0 +15,0 @@ var value; |
@@ -13,3 +13,3 @@ "use strict"; | ||
*/ | ||
var MOR_EVENT_HANDLERS_DATASET = "".concat(MOR_PREFIX, "EventHandlers"); | ||
var MOR_EVENT_HANDLERS_DATASET = "meh"; | ||
/** | ||
@@ -434,3 +434,3 @@ * 用于保存事件代理相关方法名称映射 | ||
// 触发小程序原生事件 | ||
// 事件会被 $morEventHandlerProxy 事件代理方法捕获 | ||
// 事件会被 $morEHP 事件代理方法捕获 | ||
// 并触发 event 事件, 基于 eventId | ||
@@ -456,3 +456,3 @@ _this.triggerEvent(triggerEventName, { | ||
try { | ||
this[MOR_EVENT_HANDLERS] = JSON.parse(runtime_base_1.Base64.decode(morEventHandlers)); | ||
this[MOR_EVENT_HANDLERS] = runtime_base_1.Pairs.toObject(morEventHandlers); | ||
// ref 支持 | ||
@@ -459,0 +459,0 @@ if (this[MOR_EVENT_HANDLERS].ref) { |
@@ -15,3 +15,3 @@ "use strict"; | ||
*/ | ||
options.$morEventHandlerProxy = function (event) { | ||
options.$morEHP = function (event) { | ||
var _a = event.detail, name = _a.name, args = _a.args, id = _a.id; | ||
@@ -18,0 +18,0 @@ var value; |
{ | ||
"name": "@morjs/runtime-mini", | ||
"version": "1.0.113", | ||
"version": "1.0.114-alpha.0", | ||
"description": "mor runtime for miniprogram", | ||
@@ -44,3 +44,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@morjs/runtime-base": "1.0.69", | ||
"@morjs/runtime-base": "1.0.111-alpha.0", | ||
"clone-deep": "^4.0.1", | ||
@@ -47,0 +47,0 @@ "lodash.get": "^4.4.2", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
397120
2
+ Added@morjs/runtime-base@1.0.111-alpha.0(transitive)
- Removed@morjs/runtime-base@1.0.69(transitive)