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

mipp-ali

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mipp-ali - npm Package Compare versions

Comparing version 1.19.2 to 1.19.3

60

dist/Component/Base.js

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

var rfdc_1 = __importDefault(require("rfdc"));
var rfdc_2 = __importDefault(require("rfdc"));
var lifetimesMappings = {

@@ -80,2 +81,5 @@ created: "onInit",

}
MiniComponent.prototype.onInit = function () {
// empty
};
MiniComponent.prototype.triggerEvent = function (eventName, data) {

@@ -109,3 +113,3 @@ var _a, _b, _c, _d;

var _a, _b, _c;
var that = rfdc_1.default({ proto: true })(obj);
var that = rfdc_2.default({ proto: true })(obj);
var delProperties = __spreadArrays((Array.isArray(obj.delProperties) ? obj.delProperties : []));

@@ -239,5 +243,9 @@ delProperties.forEach(function (item) {

function method(UIInterface, methodName, descriptor) {
var _a, _b;
var methods = rfdc_1.default()((_a = UIInterface === null || UIInterface === void 0 ? void 0 : UIInterface.methods) !== null && _a !== void 0 ? _a : Object.create(null));
(_b = UIInterface === null || UIInterface === void 0 ? void 0 : UIInterface.__proto__) === null || _b === void 0 ? true : delete _b.methods;
if (!UIInterface.hasOwnProperty("methods")) {
UIInterface.methods = Object.create(null);
}
UIInterface.methods = __assign(__assign({}, UIInterface.methods), (methods !== null && methods !== void 0 ? methods : Object.create(null)));
UIInterface.methods[methodName] = descriptor.value;

@@ -254,25 +262,21 @@ }

}
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_c) {
if (!(this === null || this === void 0 ? void 0 : this.$page)) {
this.$page = Object.create(null);
}
if (!((_a = this === null || this === void 0 ? void 0 : this.$page) === null || _a === void 0 ? void 0 : _a.pageShow)) {
this.$page.pageShow = [];
}
if (!((_b = this === null || this === void 0 ? void 0 : this.$page) === null || _b === void 0 ? void 0 : _b.pageHide)) {
this.$page.pageHide = [];
}
if (methodName === "show") {
this.$page.pageShow.push(descriptor.value.bind(this));
}
if (methodName === "hide") {
this.$page.pageHide.push(descriptor.value.bind(this));
}
if (typeof onInit !== "function") {
return [2 /*return*/];
}
return [2 /*return*/, onInit.apply(this, opts)];
});
});
if (!(this === null || this === void 0 ? void 0 : this.$page)) {
this.$page = Object.create(null);
}
if (!((_a = this === null || this === void 0 ? void 0 : this.$page) === null || _a === void 0 ? void 0 : _a.pageShow)) {
this.$page.pageShow = [];
}
if (!((_b = this === null || this === void 0 ? void 0 : this.$page) === null || _b === void 0 ? void 0 : _b.pageHide)) {
this.$page.pageHide = [];
}
if (methodName === "show") {
this.$page.pageShow.push(descriptor.value.bind(this));
}
if (methodName === "hide") {
this.$page.pageHide.push(descriptor.value.bind(this));
}
if (typeof onInit !== "function") {
return;
}
return onInit.apply(this, opts);
};

@@ -282,5 +286,9 @@ }

function lifetimes(UIInterface, methodName, descriptor) {
var _a, _b;
var lifetimes = rfdc_1.default()((_a = UIInterface === null || UIInterface === void 0 ? void 0 : UIInterface.lifetimes) !== null && _a !== void 0 ? _a : Object.create(null));
(_b = UIInterface === null || UIInterface === void 0 ? void 0 : UIInterface.__proto__) === null || _b === void 0 ? true : delete _b.lifetimes;
if (!UIInterface.hasOwnProperty("lifetimes")) {
UIInterface.lifetimes = Object.create(null);
}
UIInterface.lifetimes = __assign(__assign({}, UIInterface.lifetimes), (lifetimes !== null && lifetimes !== void 0 ? lifetimes : Object.create(null)));
var base = Object.getPrototypeOf(UIInterface);

@@ -313,7 +321,11 @@ var fn = descriptor.value;

function lifetime(UIInterface, methodName, descriptor) {
var _a, _b;
var lifetimes = rfdc_1.default()((_a = UIInterface === null || UIInterface === void 0 ? void 0 : UIInterface.lifetimes) !== null && _a !== void 0 ? _a : Object.create(null));
(_b = UIInterface === null || UIInterface === void 0 ? void 0 : UIInterface.__proto__) === null || _b === void 0 ? true : delete _b.lifetimes;
if (!UIInterface.hasOwnProperty("lifetimes")) {
UIInterface.lifetimes = Object.create(null);
}
UIInterface.lifetimes = __assign(__assign({}, UIInterface.lifetimes), (lifetimes !== null && lifetimes !== void 0 ? lifetimes : Object.create(null)));
UIInterface.lifetimes[methodName] = descriptor.value;
}
exports.lifetime = lifetime;

2

package.json
{
"name": "mipp-ali",
"version": "1.19.2",
"version": "1.19.3",
"description": "小程序ts",

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

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

import rfdc from "rfdc";
import clone from "rfdc";

@@ -26,2 +27,6 @@

onInit() {
// empty
}
triggerEvent<IEventData = any>(eventName: string, data?: IEventData) {

@@ -172,5 +177,11 @@ const props = (this as any)?.props;

) {
const methods = rfdc()(UIInterface?.methods ?? Object.create(null));
delete UIInterface?.__proto__?.methods;
if (!UIInterface.hasOwnProperty("methods")) {
UIInterface.methods = Object.create(null);
}
UIInterface.methods = {
...UIInterface.methods,
...(methods ?? Object.create(null)),
};
UIInterface.methods[methodName] = descriptor.value;

@@ -186,3 +197,3 @@ }

UIInterface.onInit = async function (...opts) {
UIInterface.onInit = function (...opts) {
if (!this?.$page) {

@@ -220,5 +231,11 @@ this.$page = Object.create(null);

) {
const lifetimes = rfdc()(UIInterface?.lifetimes ?? Object.create(null));
delete UIInterface?.__proto__?.lifetimes;
if (!UIInterface.hasOwnProperty("lifetimes")) {
UIInterface.lifetimes = Object.create(null);
}
UIInterface.lifetimes = {
...UIInterface.lifetimes,
...(lifetimes ?? Object.create(null)),
};

@@ -242,7 +259,12 @@ const base = Object.getPrototypeOf(UIInterface);

) {
const lifetimes = rfdc()(UIInterface?.lifetimes ?? Object.create(null));
delete UIInterface?.__proto__?.lifetimes;
if (!UIInterface.hasOwnProperty("lifetimes")) {
UIInterface.lifetimes = Object.create(null);
}
UIInterface.lifetimes = {
...UIInterface.lifetimes,
...(lifetimes ?? Object.create(null)),
};
UIInterface.lifetimes[methodName] = descriptor.value;
}
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