Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

os-dns-native

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

os-dns-native - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

5

index.d.ts
import type * as dns from 'dns';
declare let osDns: typeof dns & { withNodeFallback: typeof dns };
declare let osDns: typeof dns & {
withNodeFallback: typeof dns,
wasNativelyLookedUp: (result: unknown) => boolean;
};
export = osDns;

10

index.js

@@ -53,2 +53,4 @@ 'use strict';

const kWasNativelyLookedUp = Symbol('os-dns-native.kWasNativelyLookedUp');
function withFallback(fn, nodeFn) {

@@ -61,2 +63,3 @@ return function(...args) {

} else {
result[kWasNativelyLookedUp] = true;
cb(null, result);

@@ -68,2 +71,6 @@ }

function wasNativelyLookedUp(result) {
return !!(result && typeof result === 'object' && result[kWasNativelyLookedUp]);
}
const withNodeFallback = {

@@ -94,3 +101,4 @@ resolve: withFallback(resolve, nodeDns.resolve),

promises,
withNodeFallback
withNodeFallback,
wasNativelyLookedUp
};
{
"name": "os-dns-native",
"version": "1.0.4",
"version": "1.1.0",
"description": "Perform DNS queries using OS APIs",

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

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