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

pageviews

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pageviews - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

bower.json
{
"name": "pageviews",
"main": "pageviews",
"version": "1.0.5",
"version": "1.0.6",
"homepage": "https://github.com/tomayac/pageviews.js",

@@ -6,0 +6,0 @@ "authors": [

{
"name": "pageviews",
"version": "1.0.5",
"version": "1.0.6",
"description": "A lightweight JavaScript client library for the Wikimedia Pageviews API for Wikipedia and various of its sister projects for Node.js and the browser.",

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

@@ -31,4 +31,4 @@ # pageviews.js

project: 'en.wikipedia',
start: '20151201', // YYYYMMDD string or Date object
end: '20151202' // YYYYMMDD string or Date object
start: new Date(new Date() - 3 * 24 * 60 * 60 * 1000), // YYYYMMDD string or Date object
end: new Date(new Date() - 2 * 24 * 60 * 60 * 1000) // YYYYMMDD string or Date object
}).then(function(result) {

@@ -44,4 +44,4 @@ console.log(JSON.stringify(result, null, 2));

project: 'en.wikipedia',
start: '20151201', // YYYYMMDD string or Date object
end: '20151202' // YYYYMMDD string or Date object
start: new Date(new Date() - 3 * 24 * 60 * 60 * 1000), // YYYYMMDD string or Date object
end: new Date(new Date() - 2 * 24 * 60 * 60 * 1000) // YYYYMMDD string or Date object
}).then(function(result) {

@@ -104,3 +104,3 @@ console.log(JSON.stringify(result, null, 2));

projects: ['en.wikipedia', 'de.wikipedia'], // Plural
date: '20150101', // YYYYMMDD string or Date object
date: new Date(new Date() - 2 * 24 * 60 * 60 * 1000), // YYYYMMDD string or Date object
limit: 2 // Limit to the first n results

@@ -112,3 +112,2 @@ }).then(function(result) {

});
```

@@ -133,4 +132,4 @@

project: 'en.wikipedia',
start: '20151201', // YYYYMMDD string or Date object
end: '20151202' // YYYYMMDD string or Date object
start: new Date(new Date() - 3 * 24 * 60 * 60 * 1000), // YYYYMMDD string or Date object
end: new Date(new Date() - 2 * 24 * 60 * 60 * 1000) // YYYYMMDD string or Date object
}).then(function(result) {

@@ -137,0 +136,0 @@ console.log(JSON.stringify(result, null, 2));

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