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

chi-datapackage

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

chi-datapackage - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

9

CHANGELOG.md

@@ -9,2 +9,5 @@ CHANGELOG

## 5.0.4 (2016-11-01)
* Update dependencies
## 5.0.3 (2016-10-07)

@@ -26,7 +29,7 @@ * Fix block scope incompat with node v4

## 4.0.1 (2016-09-13)
* Fix for enviroments that don't support for const in
* Fix for environments that don't support for const in
## 4.0.0 (2016-09-12)
* read and fetch as seperate options for Loader
* Add seperate JSON and JSON5 types
* read and fetch as separate options for Loader
* Add separate JSON and JSON5 types
* Improved error handling

@@ -33,0 +36,0 @@

@@ -9,3 +9,3 @@ 'use strict';

module.exports.read = function read(path) {
module.exports.read = function (path) {
if (nodePath.sep === '\\') {

@@ -25,3 +25,3 @@ path = nodePath.normalize(path).replace(/^\\/, '');

module.exports.fetch = function fetch(url) {
module.exports.fetch = function (url) {
debug('fetching', url);

@@ -28,0 +28,0 @@ return fetchUrl(url).then(function (response) {

@@ -7,3 +7,3 @@ 'use strict';

module.exports.isPointer = function isPointer(ptr) {
module.exports.isPointer = function (ptr) {
if (typeof ptr !== 'string') {

@@ -26,5 +26,5 @@ return false;

module.exports.get = function get(obj, ptr) {
module.exports.get = function (obj, ptr) {
ptr = ptr.replace(/^#/, '');
return jsonpointer.get(obj, ptr);
};

@@ -8,13 +8,15 @@ 'use strict';

var absURLRegEx = /^([^\/]+:\/\/|\/)/;
var absURLRegEx = /^([^/]+:\/\/|\/)/;
var backSlashPattern = /\\/g;
var path = function () {
/* istanbul ignore next , in browser*/
/* istanbul ignore next , in browser */
if (typeof document !== 'undefined') {
return function resolve(url) {
return function (url) {
var div = document.createElement('div');
div.innerHTML = '<a></a>';
div.firstChild.href = url; // Ensures that the href is properly escaped
div.innerHTML = div.innerHTML; // Run the current innerHTML back through the parser
// Run the current innerHTML back through the parser
div.innerHTML = div.innerHTML; // eslint-disable-line no-self-assign
return div.firstChild.href;

@@ -21,0 +23,0 @@ };

@@ -66,3 +66,3 @@ 'use strict';

function castInt(value) {
if (/^(\-|\+)?([0-9]+|Infinity)$/.test(String(value))) {
if (/^(-|\+)?([0-9]+|Infinity)$/.test(String(value))) {
return castNumber(value);

@@ -69,0 +69,0 @@ }

{
"name": "chi-datapackage",
"version": "5.0.3",
"version": "5.0.4",
"description": "Normalize datapackage and datapackage resources",

@@ -22,8 +22,8 @@ "main": "src/index.js",

"ava": "^0.16.0",
"babel-cli": "^6.11.4",
"babel-preset-es2015": "^6.13.2",
"eslint-plugin-node": "^2.0.0",
"nock": "^8.0.0",
"nyc": "^8.1.0",
"xo": "^0.16.0"
"babel-cli": "^6.18.0",
"babel-preset-es2015": "^6.18.0",
"eslint-plugin-node": "^3.0.1",
"nock": "^9.0.2",
"nyc": "^8.3.2",
"xo": "^0.17.0"
},

@@ -56,11 +56,3 @@ "xo": {

],
"no-warning-comments": 0,
"babel/new-cap": [
2,
{
"capIsNewExceptions": [
"Polymer"
]
}
]
"no-warning-comments": 0
},

@@ -89,4 +81,4 @@ "overrides": [

"mime-lookup": "0.0.2",
"mobx": "^2.5.2",
"mobx-utils": "^1.1.0",
"mobx": "^2.6.1",
"mobx-utils": "^1.1.1",
"parse-iso-duration": "^1.0.0",

@@ -93,0 +85,0 @@ "urijs": "^1.18.1"

@@ -7,3 +7,3 @@ const nodePath = require('path');

module.exports.read = function read (path) {
module.exports.read = function (path) {
if (nodePath.sep === '\\') {

@@ -23,3 +23,3 @@ path = nodePath.normalize(path).replace(/^\\/, '');

module.exports.fetch = function fetch (url) {
module.exports.fetch = function (url) {
debug('fetching', url);

@@ -26,0 +26,0 @@ return fetchUrl(url)

@@ -5,3 +5,3 @@ const jsonpointer = require('jsonpointer');

module.exports.isPointer = function isPointer (ptr) {
module.exports.isPointer = function (ptr) {
if (typeof ptr !== 'string') {

@@ -24,5 +24,5 @@ return false;

module.exports.get = function get (obj, ptr) {
module.exports.get = function (obj, ptr) {
ptr = ptr.replace(/^#/, '');
return jsonpointer.get(obj, ptr);
};

@@ -8,13 +8,15 @@ 'use strict';

const absURLRegEx = /^([^\/]+:\/\/|\/)/;
const absURLRegEx = /^([^/]+:\/\/|\/)/;
const backSlashPattern = /\\/g;
const path = (() => {
/* istanbul ignore next , in browser*/
/* istanbul ignore next , in browser */
if (typeof document !== 'undefined') {
return function resolve (url) {
return function (url) {
const div = document.createElement('div');
div.innerHTML = '<a></a>';
div.firstChild.href = url; // Ensures that the href is properly escaped
div.innerHTML = div.innerHTML; // Run the current innerHTML back through the parser
// Run the current innerHTML back through the parser
div.innerHTML = div.innerHTML; // eslint-disable-line no-self-assign
return div.firstChild.href;

@@ -21,0 +23,0 @@ };

@@ -62,3 +62,3 @@ const d3time = require('d3-time-format');

function castInt (value) {
if (/^(\-|\+)?([0-9]+|Infinity)$/.test(String(value))) {
if (/^(-|\+)?([0-9]+|Infinity)$/.test(String(value))) {
return castNumber(value);

@@ -65,0 +65,0 @@ }

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