Socket
Socket
Sign inDemoInstall

felixriddle.pid-discovery

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

12

dist/index.d.ts

@@ -5,3 +5,13 @@ /**

declare function updateAppInfo(): Promise<Response>;
interface AppInfo {
name: string;
pid: number;
appType: string;
url: string;
}
/**
* More configurable option to insert process information
*/
declare function upsertProcessInfo(appInfo: AppInfo): Promise<Response>;
export { updateAppInfo };
export { type AppInfo, updateAppInfo, upsertProcessInfo };

@@ -53,3 +53,4 @@ "use strict";

__export(src_exports, {
updateAppInfo: () => updateAppInfo
updateAppInfo: () => updateAppInfo,
upsertProcessInfo: () => upsertProcessInfo
});

@@ -81,6 +82,26 @@ module.exports = __toCommonJS(src_exports);

}
function upsertProcessInfo(appInfo) {
return __async(this, null, function* () {
const url = `http://localhost:24000`;
const headers = {
"Content-Type": "application/json"
};
const data = {
name: appInfo.name,
pid: appInfo.pid,
appType: appInfo.appType,
url: appInfo.url
};
return yield fetch(`${url}/process`, {
method: "POST",
headers,
body: JSON.stringify(data)
});
});
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
updateAppInfo
updateAppInfo,
upsertProcessInfo
});
//# sourceMappingURL=index.js.map

2

package.json
{
"name": "felixriddle.pid-discovery",
"version": "1.0.3",
"version": "1.0.4",
"description": "Used with 'app-manager' to update the pid in the database",

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc