Comparing version 1.19.4 to 1.19.5
@@ -297,2 +297,30 @@ "use strict"; | ||
}; | ||
var createdFn = that === null || that === void 0 ? void 0 : that.onLoad; | ||
that.onLoad = function created() { | ||
var _a; | ||
var opts = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
opts[_i] = arguments[_i]; | ||
} | ||
try { | ||
this.viewStatus = "load"; | ||
} | ||
catch (_b) { } | ||
return (_a = createdFn === null || createdFn === void 0 ? void 0 : createdFn.apply) === null || _a === void 0 ? void 0 : _a.call(createdFn, this, opts); | ||
}; | ||
var readyFn = that === null || that === void 0 ? void 0 : that.onReady; | ||
that.onReady = function ready() { | ||
var _a; | ||
var opts = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
opts[_i] = arguments[_i]; | ||
} | ||
try { | ||
if (this.viewStatus !== "ready") { | ||
this.viewStatus = "ready"; | ||
} | ||
} | ||
catch (_b) { } | ||
return (_a = readyFn === null || readyFn === void 0 ? void 0 : readyFn.apply) === null || _a === void 0 ? void 0 : _a.call(readyFn, this, opts); | ||
}; | ||
return that; | ||
@@ -299,0 +327,0 @@ }; |
{ | ||
"name": "mipp-ali", | ||
"version": "1.19.4", | ||
"version": "1.19.5", | ||
"description": "小程序ts", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -179,2 +179,20 @@ import clone from "rfdc"; | ||
const createdFn = that?.onLoad; | ||
that.onLoad = function created(...opts: any) { | ||
try { | ||
this.viewStatus = "load"; | ||
} catch {} | ||
return createdFn?.apply?.(this, opts); | ||
}; | ||
const readyFn = that?.onReady; | ||
that.onReady = function ready(...opts: any) { | ||
try { | ||
if (this.viewStatus !== "ready") { | ||
this.viewStatus = "ready"; | ||
} | ||
} catch {} | ||
return readyFn?.apply?.(this, opts); | ||
}; | ||
return that; | ||
@@ -181,0 +199,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
668339
23394