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

@morjs/runtime-mini

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@morjs/runtime-mini - npm Package Compare versions

Comparing version 1.0.70 to 1.0.71

3

esm/alipay/componentToAlipay.js

@@ -7,3 +7,3 @@ import { __assign, __spreadArray } from "tslib";

import { injectHasBehaviorSupport } from '../common/behaviorOrMixin';
import { canIUse, injectComponentSelectorMethodsSupport, injectCreateIntersectionObserverSupport, injectTwoWayBindingMethodsSupport, markUnsupportMethods } from './utilsToAlipay';
import { canIUse, injectComponentSelectorMethodsSupport, injectCreateIntersectionObserverSupport, injectCreateSelectorQuerySupport, injectTwoWayBindingMethodsSupport, markUnsupportMethods } from './utilsToAlipay';
var MOR_PREFIX = 'mor';

@@ -437,2 +437,3 @@ /**

injectCreateIntersectionObserverSupport(),
injectCreateSelectorQuerySupport(),
initPropertiesAndData,

@@ -439,0 +440,0 @@ callOriginalFn('onInit')

import { compose } from '@morjs/runtime-base';
import { injectHasBehaviorSupport } from '../common/behaviorOrMixin';
import { injectComponentSelectorMethodsSupport, injectCreateIntersectionObserverSupport, injectTwoWayBindingMethodsSupport, markUnsupportMethods } from './utilsToAlipay';
import { injectComponentSelectorMethodsSupport, injectCreateIntersectionObserverSupport, injectCreateSelectorQuerySupport, injectTwoWayBindingMethodsSupport, markUnsupportMethods } from './utilsToAlipay';
/**

@@ -33,3 +33,6 @@ * 注入页面实例方法支持

// 注入 createIntersectionObserver 方法
var onLoadFns = [injectCreateIntersectionObserverSupport()];
var onLoadFns = [
injectCreateIntersectionObserverSupport(),
injectCreateSelectorQuerySupport()
];
if (typeof options.onLoad === 'function')

@@ -36,0 +39,0 @@ onLoadFns.push(options.onLoad);

@@ -21,1 +21,7 @@ export declare function canIUse(name: string): boolean;

export declare function injectCreateIntersectionObserverSupport(): () => void;
/**
* 为组件或页面注入 this.createSelectorQuery 支持
* 原因: 支付宝仅 2.7.4 及以上页面有该方法
* @param context 组件或页面上下文, 即 this 对象
*/
export declare function injectCreateSelectorQuerySupport(): () => void;

@@ -234,2 +234,17 @@ import { getGlobalObject, logger, markAsUnsupport } from '@morjs/runtime-base';

}
/**
* 为组件或页面注入 this.createSelectorQuery 支持
* 原因: 支付宝仅 2.7.4 及以上页面有该方法
* @param context 组件或页面上下文, 即 this 对象
*/
export function injectCreateSelectorQuerySupport() {
return function () {
// 如果方法存在则不处理
if (this === null || this === void 0 ? void 0 : this.createSelectorQuery)
return;
this.createSelectorQuery = function () {
return getGlobalObject().createSelectorQuery();
};
};
}
//# sourceMappingURL=utilsToAlipay.js.map

@@ -439,2 +439,3 @@ "use strict";

(0, utilsToAlipay_1.injectCreateIntersectionObserverSupport)(),
(0, utilsToAlipay_1.injectCreateSelectorQuerySupport)(),
initPropertiesAndData,

@@ -441,0 +442,0 @@ callOriginalFn('onInit')

@@ -36,3 +36,6 @@ "use strict";

// 注入 createIntersectionObserver 方法
var onLoadFns = [(0, utilsToAlipay_1.injectCreateIntersectionObserverSupport)()];
var onLoadFns = [
(0, utilsToAlipay_1.injectCreateIntersectionObserverSupport)(),
(0, utilsToAlipay_1.injectCreateSelectorQuerySupport)()
];
if (typeof options.onLoad === 'function')

@@ -39,0 +42,0 @@ onLoadFns.push(options.onLoad);

@@ -21,1 +21,7 @@ export declare function canIUse(name: string): boolean;

export declare function injectCreateIntersectionObserverSupport(): () => void;
/**
* 为组件或页面注入 this.createSelectorQuery 支持
* 原因: 支付宝仅 2.7.4 及以上页面有该方法
* @param context 组件或页面上下文, 即 this 对象
*/
export declare function injectCreateSelectorQuerySupport(): () => void;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.injectCreateIntersectionObserverSupport = exports.injectTwoWayBindingMethodsSupport = exports.injectComponentSelectorMethodsSupport = exports.markUnsupportMethods = exports.canIUse = void 0;
exports.injectCreateSelectorQuerySupport = exports.injectCreateIntersectionObserverSupport = exports.injectTwoWayBindingMethodsSupport = exports.injectComponentSelectorMethodsSupport = exports.markUnsupportMethods = exports.canIUse = void 0;
var runtime_base_1 = require("@morjs/runtime-base");

@@ -242,2 +242,18 @@ function canIUse(name) {

exports.injectCreateIntersectionObserverSupport = injectCreateIntersectionObserverSupport;
/**
* 为组件或页面注入 this.createSelectorQuery 支持
* 原因: 支付宝仅 2.7.4 及以上页面有该方法
* @param context 组件或页面上下文, 即 this 对象
*/
function injectCreateSelectorQuerySupport() {
return function () {
// 如果方法存在则不处理
if (this === null || this === void 0 ? void 0 : this.createSelectorQuery)
return;
this.createSelectorQuery = function () {
return (0, runtime_base_1.getGlobalObject)().createSelectorQuery();
};
};
}
exports.injectCreateSelectorQuerySupport = injectCreateSelectorQuerySupport;
//# sourceMappingURL=utilsToAlipay.js.map
{
"name": "@morjs/runtime-mini",
"version": "1.0.70",
"version": "1.0.71",
"description": "mor runtime for miniprogram",

@@ -51,3 +51,3 @@ "keywords": [

},
"gitHead": "a6a7c779693770823095b39f2735e1d58c91db95"
"gitHead": "3ac4fd40e92d3941560efc99cc1ad07d7ea5ab71"
}

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

Sorry, the diff of this file is not supported yet

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