Socket
Socket
Sign inDemoInstall

@vercel/devlow-bench

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/devlow-bench - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

15

dist/interfaces/datadog.js
import datadogApiClient from "@datadog/datadog-api-client";
import os from "os";
import { command } from "../shell.js";
function toIdentifier(str) {

@@ -11,2 +12,14 @@ return str.replace(/\//g, ".").replace(/ /g, "_");

};
const GIT_SHA = process.env.GITHUB_SHA ??
(await (async () => {
const cmd = command("git", ["rev-parse", "HEAD"]);
await cmd.ok();
return cmd.output.trim();
})());
const GIT_BRANCH = process.env.GITHUB_REF_NAME ??
(await (async () => {
const cmd = command("git", ["rev-parse", "--abbrev-ref", "HEAD"]);
await cmd.ok();
return cmd.output.trim();
})());
export default function createInterface({ apiKey = process.env.DATADOG_API_KEY, appKey = process.env.DATADOG_APP_KEY, host = process.env.DATADOG_HOST || os.hostname(), } = {}) {

@@ -25,2 +38,4 @@ if (!apiKey)

`node_version:${process.version}`,
`git_sha:${GIT_SHA}`,
`git_branch:${GIT_BRANCH}`,
];

@@ -27,0 +42,0 @@ const configuration = datadogApiClient.client.createConfiguration({

2

package.json
{
"name": "@vercel/devlow-bench",
"version": "0.3.1",
"version": "0.3.2",
"description": "Benchmarking tool for the developer workflow",

@@ -5,0 +5,0 @@ "publishConfig": {

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