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

climate-data-crawler

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

climate-data-crawler - npm Package Compare versions

Comparing version 2.1.6 to 2.1.8

1

cdoApiClient.js

@@ -18,3 +18,2 @@ "use strict";

host : 'www.ncdc.noaa.gov',
port : 80,
path : queryPath + '&offset=' + offset,

@@ -21,0 +20,0 @@ method : 'GET',

4

helpers/httpClient.js
"use strict";
var http = require("http");
var https = require("https");

@@ -7,3 +7,3 @@ function HttpClient(){

this.request = function(options, successCallback, errorCallback){
var request = http.request(options, function(response) {
var request = https.request(options, function(response) {
if (response.statusCode != 200){

@@ -10,0 +10,0 @@ console.log(response.statusCode);

{
"name": "climate-data-crawler",
"version": "2.1.6",
"version": "2.1.8",
"description": "Data Crawler for CDO (Climate Data Online) web services",

@@ -10,3 +10,4 @@ "main": "app.js",

"scripts": {
"test": "mocha ./tests/*"
"test": "mocha ./tests/unit/*",
"test-all": "mocha ./tests/*"
},

@@ -13,0 +14,0 @@ "repository": {

@@ -5,3 +5,3 @@ [![Build Status](https://travis-ci.org/jonbern/climate-data-crawler.svg?branch=master)](https://travis-ci.org/jonbern/climate-data-crawler)

Climate Data Crawler is a node.js library and CLI (Command Line Interface) for querying
[NCDC's (National Climatic Date Center) CDO (Climate Data Online) web services v2](https://www.ncdc.noaa.gov/cdo-web/webservices/v2)
[NCDC's (National Climatic Data Center) CDO (Climate Data Online) web services v2](https://www.ncdc.noaa.gov/cdo-web/webservices/v2)
at different levels of abstraction.

@@ -216,3 +216,3 @@

[NCDC's (National Climatic Date Center) CDO (Climate Data Online) web services v2](https://www.ncdc.noaa.gov/cdo-web/webservices/v2)
[NCDC's (National Climatic Data Center) CDO (Climate Data Online) web services v2](https://www.ncdc.noaa.gov/cdo-web/webservices/v2)

@@ -219,0 +219,0 @@ [Wikipedia: Global Historical Climatology Network](http://en.wikipedia.org/wiki/Global_Historical_Climatology_Network)

@@ -10,4 +10,3 @@ "use strict";

var options = {
host : 'www.bt.no',
port : 80,
host : 'www.google.com',
method : 'GET'

@@ -27,3 +26,2 @@ };

host : 'www.not.a.valid.hostname',
port : 80,
path : '/undefined',

@@ -30,0 +28,0 @@ method : 'GET'

@@ -104,3 +104,2 @@ "use strict";

host : 'www.ncdc.noaa.gov',
port : 80,
path : '/cdo-web/api/v2/data?datasetid=GHCND&locationid=CITY:AS000002&startdate=2012-01-01&enddate=2012-06-01&datatypeid=PRCP&limit=1000&offset=1',

@@ -107,0 +106,0 @@ method : 'GET',

"use strict";
var assert = require('assert');
var sinon = require('sinon');
var DataProbingBounds = require('../../dataProbingBounds');

@@ -7,2 +8,13 @@

var clock;
beforeEach(function() {
clock = sinon.useFakeTimers();
clock.now = '2015-01-01';
});
afterEach(function() {
clock = clock.restore();
});
function getInstance(stopYear){

@@ -107,2 +119,2 @@ return new DataProbingBounds(stopYear ? stopYear : 2000);

})
});
});
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