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

@morjs/core

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@morjs/core - npm Package Compare versions

Comparing version 1.0.53 to 1.0.68

2

esm/app.d.ts

@@ -64,2 +64,4 @@ /// <reference types="miniprogram-api-typings/types/index" />

globalApp?: (options: IData) => any;
/** 暴露给 App 调用的方法,可调用传入的 $hooks 执行所需逻辑,如 调用 $hooks.pause 暂定所有生命周期函数的执行 */
onHooksCreated?: ($hooks: Record<string, any>) => any;
}): any;

@@ -66,0 +68,0 @@ /**

@@ -108,2 +108,9 @@ import { __assign, __spreadArray } from "tslib";

logger.timeEnd('app-init-solution');
if (extend === null || extend === void 0 ? void 0 : extend.onHooksCreated) {
if (typeof extend.onHooksCreated !== 'function') {
logger.error('onHooksCreated 必须是函数, 请检查 App 的 extends 配置');
return;
}
extend.onHooksCreated($hooks);
}
// 添加到 App 实例中

@@ -110,0 +117,0 @@ appOptions.$morHooks = $hooks;

4

esm/utils/invokeHook.d.ts

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

import { MorHooks } from '@morjs/api';
import { MorHookNames } from '@morjs/api';
/**

@@ -6,2 +6,2 @@ * 调用 hook

*/
export declare const invokeHook: (hookName: keyof MorHooks) => (this: Record<string, any>, ...args: any[]) => void;
export declare const invokeHook: (hookName: MorHookNames) => (this: Record<string, any>, ...args: any[]) => void;

@@ -64,2 +64,4 @@ /// <reference types="miniprogram-api-typings/types/index" />

globalApp?: (options: IData) => any;
/** 暴露给 App 调用的方法,可调用传入的 $hooks 执行所需逻辑,如 调用 $hooks.pause 暂定所有生命周期函数的执行 */
onHooksCreated?: ($hooks: Record<string, any>) => any;
}): any;

@@ -66,0 +68,0 @@ /**

@@ -111,2 +111,9 @@ "use strict";

api_1.logger.timeEnd('app-init-solution');
if (extend === null || extend === void 0 ? void 0 : extend.onHooksCreated) {
if (typeof extend.onHooksCreated !== 'function') {
api_1.logger.error('onHooksCreated 必须是函数, 请检查 App 的 extends 配置');
return;
}
extend.onHooksCreated($hooks);
}
// 添加到 App 实例中

@@ -113,0 +120,0 @@ appOptions.$morHooks = $hooks;

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

import { MorHooks } from '@morjs/api';
import { MorHookNames } from '@morjs/api';
/**

@@ -6,2 +6,2 @@ * 调用 hook

*/
export declare const invokeHook: (hookName: keyof MorHooks) => (this: Record<string, any>, ...args: any[]) => void;
export declare const invokeHook: (hookName: MorHookNames) => (this: Record<string, any>, ...args: any[]) => void;
{
"name": "@morjs/core",
"version": "1.0.53",
"version": "1.0.68",
"description": "mor runtime core",

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

"dependencies": {
"@morjs/api": "1.0.53",
"@morjs/api": "1.0.68",
"mini-types": "^0.1.7",

@@ -47,3 +47,3 @@ "miniprogram-api-typings": "^3.4.4",

},
"gitHead": "e2681c3e73f2c2c1ccb81f1add3b12a6ccedadca"
"gitHead": "aadb9fbd87cca39e05f2a3e4e2d5ecdca636ef42"
}

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