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

@cedx/akismet

Package Overview
Dependencies
Maintainers
0
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cedx/akismet - npm Package Compare versions

Comparing version 16.2.0 to 16.2.1

tsconfig.json

4

lib/blog.d.ts

@@ -12,3 +12,3 @@ /**

*/
languages: string[];
languages: Array<string>;
/**

@@ -46,3 +46,3 @@ * The blog or site URL.

*/
languages: string[];
languages: Array<string>;
/**

@@ -49,0 +49,0 @@ * The blog or site URL.

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

import process from "node:process";
import { CheckResult } from "./check_result.js";

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

*/
static #version = "16.2.0";
static #version = "16.2.1";
/**

@@ -48,3 +49,4 @@ * The Akismet API key.

this.isTest = options.isTest ?? false;
this.userAgent = options.userAgent ?? `${navigator.userAgent} | Akismet/${Client.#version}`;
const [nodeVersion] = process.version.slice(1).split(".");
this.userAgent = options.userAgent ?? `Node.js/${nodeVersion} | Akismet/${Client.#version}`;
}

@@ -88,3 +90,3 @@ /**

try {
const response = await this.#fetch("1.1/verify-key", {});
const response = await this.#fetch("1.1/verify-key");
return await response.text() == "valid";

@@ -102,3 +104,3 @@ }

*/
async #fetch(endpoint, fields) {
async #fetch(endpoint, fields = {}) {
const body = new URLSearchParams({ ...this.blog.toJSON(), api_key: this.apiKey });

@@ -105,0 +107,0 @@ if (this.isTest)

@@ -17,3 +17,3 @@ import { Author } from "./author.js";

*/
context: string[];
context: Array<string>;
/**

@@ -75,3 +75,3 @@ * The UTC timestamp of the creation of the comment.

*/
context: string[];
context: Array<string>;
/**

@@ -78,0 +78,0 @@ * The UTC timestamp of the creation of the comment.

@@ -9,3 +9,3 @@ {

"type": "module",
"version": "16.2.0",
"version": "16.2.1",
"author": {

@@ -19,11 +19,11 @@ "email": "cedric@belin.io",

"@types/gulp": "^4.0.17",
"@types/node": "^20.14.12",
"@types/node": "^22.7.4",
"del": "^7.1.0",
"execa": "^9.3.0",
"execa": "^9.4.0",
"gulp": "^5.0.0",
"typescript": "^5.5.4",
"typescript-eslint": "^8.0.0-alpha.54"
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0"
},
"engines": {
"node": ">=22.0.0"
"node": ">=20.0.0"
},

@@ -36,3 +36,4 @@ "exports": {

"lib/",
"src/"
"src/",
"tsconfig.json"
],

@@ -39,0 +40,0 @@ "keywords": [

@@ -14,3 +14,3 @@ /**

*/
languages: string[];
languages: Array<string>;

@@ -70,3 +70,3 @@ /**

*/
languages: string[];
languages: Array<string>;

@@ -73,0 +73,0 @@ /**

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

import process from "node:process";
import type {Blog} from "./blog.js";

@@ -18,3 +19,3 @@ import {CheckResult} from "./check_result.js";

*/
static readonly #version = "16.2.0";
static readonly #version = "16.2.1";

@@ -60,3 +61,5 @@ /**

this.isTest = options.isTest ?? false;
this.userAgent = options.userAgent ?? `${navigator.userAgent} | Akismet/${Client.#version}`;
const [nodeVersion] = process.version.slice(1).split(".");
this.userAgent = options.userAgent ?? `Node.js/${nodeVersion} | Akismet/${Client.#version}`;
}

@@ -102,3 +105,3 @@

try {
const response = await this.#fetch("1.1/verify-key", {});
const response = await this.#fetch("1.1/verify-key");
return await response.text() == "valid";

@@ -117,3 +120,3 @@ }

*/
async #fetch(endpoint: string, fields: Record<string, any>): Promise<Response> {
async #fetch(endpoint: string, fields: Record<string, any> = {}): Promise<Response> {
const body = new URLSearchParams({...this.blog.toJSON(), api_key: this.apiKey});

@@ -120,0 +123,0 @@ if (this.isTest) body.set("is_test", "1");

@@ -21,3 +21,3 @@ import {Author} from "./author.js";

*/
context: string[];
context: Array<string>;

@@ -126,3 +126,3 @@ /**

*/
context: string[];
context: Array<string>;

@@ -129,0 +129,0 @@ /**

@@ -7,8 +7,6 @@ {

"declarationMap": true,
"incremental": true,
"noEmit": false,
"outDir": "../lib",
"rootDir": ".",
"tsBuildInfoFile": "../var/tsbuildinfo.json"
"rootDir": "."
}
}

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