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

caa

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caa - npm Package Compare versions

Comparing version 6.0.5 to 7.0.0

13

index.js
"use strict";
const dnsSocket = require("dns-socket");
const tlds = require("tlds");
const {promisify} = require("util");
import {getServers} from "dns";
import dnsSocket from "dns-socket";
import tlds from "tlds";
import {promisify} from "util";

@@ -92,3 +93,3 @@ const defaults = {

const caa = module.exports = async (name, opts = {}) => {
export default async function caa(name, opts = {}) {
if (typeof name !== "string") throw new Error(`Expected a string for 'name', got ${name}`);

@@ -98,3 +99,3 @@ name = normalizeName(name);

if (!opts.servers) {
const systemServers = require("dns").getServers();
const systemServers = getServers();
opts.servers = (systemServers && systemServers.length) ? systemServers : defaults.servers;

@@ -120,3 +121,3 @@ }

return caa || [];
};
}

@@ -123,0 +124,0 @@ caa.matches = async (name, ca, opts = {}) => {

{
"name": "caa",
"version": "6.0.5",
"version": "7.0.0",
"description": "rfc6844-conform CAA record lookup and validation",

@@ -8,2 +8,4 @@ "author": "silverwind <me@silverwind.io>",

"license": "BSD-2-Clause",
"type": "module",
"exports": "./index.js",
"scripts": {

@@ -13,3 +15,3 @@ "test": "make test"

"engines": {
"node": ">=10"
"node": ">=12"
},

@@ -27,15 +29,17 @@ "files": [

"dns-socket": "^4.2.1",
"tlds": "^1.218.0"
"tlds": "^1.220.0"
},
"devDependencies": {
"eslint": "7.21.0",
"eslint-config-silverwind": "29.0.0",
"jest": "26.6.3",
"updates": "11.4.3",
"versions": "8.4.5"
"@babel/core": "7.13.16",
"eslint": "7.24.0",
"eslint-config-silverwind": "32.3.3",
"jest": "27.0.0-next.8",
"updates": "12.0.2",
"versions": "8.4.7"
},
"jest": {
"verbose": false,
"testTimeout": 10000
"testTimeout": 10000,
"transform": {}
}
}

@@ -12,3 +12,3 @@ # caa

```js
const caa = require('caa');
import caa from 'caa';

@@ -15,0 +15,0 @@ await caa('subdomain.example.com');

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