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.3 to 0.0.4

.nyc_output/17548.json

2

index.js

@@ -253,5 +253,5 @@ 'use strict';

})
.catch(error => cb(null, error.message));
.catch(error => reject(error.message));
});
}
}
{
"name": "page-data",
"version": "0.0.3",
"version": "0.0.4",
"description": "simple page data get client tool",

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

const page = require('./index');
var cb = function(res, error) {
console.log(res);
}
// var cb = function(res, error) {
// console.log(res);
// }

@@ -27,3 +27,3 @@ // var req = page.status('https://github.com');

var req = page.meta('https://github.com');
var req = page.meta('https://93.184.216.34');
req.then(res => {

@@ -30,0 +30,0 @@ console.log(res)

@@ -99,2 +99,11 @@ 'use strict';

test('.meta() with callback is return error message', t => {
const url = 'https://93.184.216.34',
cb = (_, error) => {
t.is(error, 'Hostname/IP doesn\'t match certificate\'s altnames: "IP: 93.184.216.34 is not in the cert\'s list:"');
};
page.meta(url, cb);
});
test('.getPort() is return port number', t => {

@@ -101,0 +110,0 @@ const getPort = app.__get__('getPort');

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