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

node-tracker-js

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-tracker-js - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

63

index.d.ts

@@ -1,10 +0,55 @@

declare namespace Tracker {
export interface opts {
host?: string;
token?: string;
clientid?: string;
version?: string;
meta?: any;
platform?: string;
}
/**
* web上的日志发送库
*/
declare class Tracker {
constructor(opts?: opts);
/**
* 设置用户id
* @param clientid 自定义的id
*/
setClientid(clientid: string): void;
/**
* 设置平台
* @param platform 平台类型
*/
setPlatform(platform: string): void;
/**
* 设置版本
* @param version 版本号
*/
setVersion(version: string): void;
/**
* 发送消息,不带meta会使用get方式发送
* @param title 标题
* @param desc 详情
* @param meta 附加数据,会覆盖全局数据
*/
msg(title: string, desc: string, meta?: any): void;
}
interface opts {
/**
* 发送日志的api地址,不需要设置
*/
host?: string;
/**
* 项目token
*/
token?: string;
/**
* 识别不同的用户
*/
clientid?: string;
/**
* 识别不同的版本
*/
version?: string;
/**
* 全局附加数据
*/
meta?: any;
/**
* adwdw
*/
platform?: string;
}
export = Tracker;

36

package.json
{
"name": "node-tracker-js",
"version": "1.0.0",
"description": "js发送消息",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/cuo9958/tracker-js.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/cuo9958/tracker-js/issues"
},
"homepage": "https://github.com/cuo9958/tracker-js#readme"
"name": "node-tracker-js",
"version": "1.0.1",
"description": "js发送消息",
"main": "index.js",
"scripts": {
"test": ""
},
"repository": {
"type": "git",
"url": "git+https://github.com/cuo9958/tracker-js.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/cuo9958/tracker-js/issues"
},
"homepage": "https://github.com/cuo9958/tracker-js#readme"
}
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