Comparing version 0.1.0 to 0.1.1
@@ -6,18 +6,1 @@ export interface WeWorkChatInit { | ||
} | ||
declare class WeWorkChat { | ||
private corpid; | ||
private secret; | ||
private private_key; | ||
constructor(options: WeWorkChatInit); | ||
private init; | ||
getChatData(params: { | ||
seq: number; | ||
limit: number; | ||
proxy?: string; | ||
passwd?: string; | ||
timeout: number; | ||
}): Promise<Record<string, unknown>>; | ||
deRSAcryptChatData(encrypt_random_key: string): Promise<string>; | ||
deCryptDatas(encrypt_key: string, encrypt_msg: string): Promise<Record<string, unknown>>; | ||
} | ||
export default WeWorkChat; |
@@ -7,3 +7,3 @@ "use strict"; | ||
const path_1 = __importDefault(require("path")); | ||
const w = require(path_1.default.resolve('build/Release/bf-wchat.node')); | ||
const w = require(path_1.default.join(__dirname, '../build/Release/bf-wchat.node')); | ||
class WeWorkChat { | ||
@@ -51,2 +51,2 @@ corpid; | ||
} | ||
exports.default = WeWorkChat; | ||
module.exports = WeWorkChat; |
{ | ||
"name": "bf-wchat", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Enterprise WeChat chat archive.", | ||
@@ -24,4 +24,6 @@ "main": "dist/index.js", | ||
"build": "node-gyp rebuild", | ||
"postbuild": "tsc -p tsconfig.json", | ||
"start": "yarn ts-node index.ts", | ||
"tsbuild": "tsc -p tsconfig.json", | ||
"postbuild": "yarn tsbuild", | ||
"start": "yarn ts-node src/index.ts", | ||
"dev": "tsc -p tsconfig.json -w", | ||
"prepublishOnly": "yarn build" | ||
@@ -28,0 +30,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
357335
56