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

page-data

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

page-data - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

.gitattribute

16

index.js

@@ -52,2 +52,3 @@ 'use strict';

method: 'GET',
host: urlInfo.hostname,
hostname: urlInfo.hostname,

@@ -65,3 +66,2 @@ path: urlInfo.pathname

socket.end();
const peerCertificate = socket.getPeerCertificate(true);

@@ -82,3 +82,3 @@ if(Object.keys(peerCertificate).length !== 0) {

const _op = {};
for(var i in opts) {
for(let i in opts) {
if (i !== 'port' || i !== 'hostname') {

@@ -88,3 +88,2 @@ _op[i] = opts[i];

}
const socket = tls.connect(

@@ -97,3 +96,3 @@ opts.port,

socket.on('error', (error) => {
socket.on('error', error => {
reject(error);

@@ -180,5 +179,8 @@ });

let defaults = requestOptions(requestUrl, { protocol: 'https', port: 443, });
delete defaults.method;
let defaults = requestOptions(requestUrl, { port: 443, });
['method', 'path'].map(v => {
if (defaults[v]) {
delete defaults[v]
}
});
const options = Object.assign(defaults, opts);

@@ -185,0 +187,0 @@ const promise = tlsInformation(options);

{
"name": "page-data",
"version": "0.0.12",
"version": "0.0.13",
"description": "simple page data get client tool",

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

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