aurelia-path
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "aurelia-path", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Utilities for path manipulation.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
var path = require('path'); | ||
var fs = require('fs'); | ||
var appRoot = 'src/'; | ||
var pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8')); | ||
module.exports = { | ||
root: appRoot, | ||
source: appRoot + '**/*.js', | ||
html: appRoot + '**/*.html', | ||
style: 'styles/**/*.css', | ||
output: 'dist/', | ||
doc:'./doc', | ||
e2eSpecsSrc: 'test/e2e/src/*.js', | ||
e2eSpecsDist: 'test/e2e/dist/', | ||
packageName: pkg.name | ||
};var path = require('path'); | ||
var fs = require('fs'); | ||
// hide warning // | ||
@@ -21,0 +5,0 @@ var emitter = require('events'); |
@@ -15,3 +15,3 @@ define(['exports'], function (exports) { | ||
} : function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
@@ -18,0 +18,0 @@ |
@@ -7,3 +7,3 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -10,0 +10,0 @@ exports.relativeToFile = relativeToFile; |
@@ -97,3 +97,3 @@ | ||
if (traditional) { | ||
result.push(`${ encodeKey(key) }=${ encode(value[i]) }`); | ||
result.push(`${encodeKey(key)}=${encode(value[i])}`); | ||
} else { | ||
@@ -109,3 +109,3 @@ let arrayKey = key + '[' + (typeof value[i] === 'object' && value[i] !== null ? i : '') + ']'; | ||
} else { | ||
result.push(`${ encodeKey(key) }=${ encode(value) }`); | ||
result.push(`${encodeKey(key)}=${encode(value)}`); | ||
} | ||
@@ -112,0 +112,0 @@ return result; |
@@ -1,2 +0,2 @@ | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
@@ -3,0 +3,0 @@ function trimDots(ary) { |
@@ -215,3 +215,3 @@ 'use strict'; | ||
} : function (obj) { | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; | ||
}; | ||
@@ -218,0 +218,0 @@ encode = encodeURIComponent; |
@@ -11,3 +11,3 @@ 'use strict'; | ||
for (var _key in _aureliaPath) { | ||
if (_key !== "default" && key !== "__esModule") _exportObj[_key] = _aureliaPath[_key]; | ||
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _aureliaPath[_key]; | ||
} | ||
@@ -14,0 +14,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"name":"aurelia-path","children":[{"id":10,"name":"buildQueryString","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":11,"name":"buildQueryString","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Generate a query string from an object.","returns":"The generated query string, excluding leading '?'.\n"},"parameters":[{"id":12,"name":"params","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"Object containing the keys and values to be used."},"type":{"type":"reference","name":"Object"}},{"id":13,"name":"traditional","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Boolean Use the old URI template standard (RFC6570)"},"type":{"type":"reference","name":"Boolean"}}],"type":{"type":"instrinct","name":"string"}}]},{"id":6,"name":"join","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":7,"name":"join","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Joins two paths.","returns":"The joined path.\n"},"parameters":[{"id":8,"name":"path1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The first path."},"type":{"type":"instrinct","name":"string"}},{"id":9,"name":"path2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The second path."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"string"}}]},{"id":14,"name":"parseQueryString","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":15,"name":"parseQueryString","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Parse a query string.","returns":"Object with keys and values mapped from the query string.\n"},"parameters":[{"id":16,"name":"queryString","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The query string to parse."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Object"}}]},{"id":2,"name":"relativeToFile","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":3,"name":"relativeToFile","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Calculates a path relative to a file.","returns":"The calculated path.\n"},"parameters":[{"id":4,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The relative path."},"type":{"type":"instrinct","name":"string"}},{"id":5,"name":"file","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The file path."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"string"}}]}],"groups":[{"title":"Functions","kind":64,"children":[10,6,14,2]}]} | ||
{"name":"aurelia-path","children":[{"id":10,"name":"buildQueryString","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":11,"name":"buildQueryString","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Generate a query string from an object.","returns":"The generated query string, excluding leading '?'.\n"},"parameters":[{"id":12,"name":"params","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"Object containing the keys and values to be used."},"type":{"type":"reference","name":"Object"}},{"id":13,"name":"traditional","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"Boolean Use the old URI template standard (RFC6570)"},"type":{"type":"reference","name":"Boolean"}}],"type":{"type":"instrinct","name":"string"}}],"sources":[{"fileName":"aurelia-path.d.ts","line":27,"character":40}]},{"id":6,"name":"join","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":7,"name":"join","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Joins two paths.","returns":"The joined path.\n"},"parameters":[{"id":8,"name":"path1","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The first path."},"type":{"type":"instrinct","name":"string"}},{"id":9,"name":"path2","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The second path."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"string"}}],"sources":[{"fileName":"aurelia-path.d.ts","line":18,"character":28}]},{"id":14,"name":"parseQueryString","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":15,"name":"parseQueryString","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Parse a query string.","returns":"Object with keys and values mapped from the query string.\n"},"parameters":[{"id":16,"name":"queryString","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The query string to parse."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Object"}}],"sources":[{"fileName":"aurelia-path.d.ts","line":35,"character":40}]},{"id":2,"name":"relativeToFile","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":3,"name":"relativeToFile","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Calculates a path relative to a file.","returns":"The calculated path.\n"},"parameters":[{"id":4,"name":"name","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The relative path."},"type":{"type":"instrinct","name":"string"}},{"id":5,"name":"file","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The file path."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"string"}}],"sources":[{"fileName":"aurelia-path.d.ts","line":9,"character":38}]}],"groups":[{"title":"Functions","kind":64,"children":[10,6,14,2]}]} |
@@ -0,1 +1,6 @@ | ||
<a name="1.1.2"></a> | ||
## [1.1.2](https://github.com/aurelia/path/compare/1.1.1...1.1.2) (2019-01-18) | ||
* Add module field to package.json. | ||
<a name="1.1.1"></a> | ||
@@ -2,0 +7,0 @@ ## [1.1.1](https://github.com/aurelia/path/compare/1.1.0...v1.1.1) (2016-09-23) |
{ | ||
"name": "aurelia-path", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Utilities for path manipulation.", | ||
@@ -16,2 +16,3 @@ "keywords": [ | ||
"main": "dist/commonjs/aurelia-path.js", | ||
"module": "dist/es2015/aurelia-path.js", | ||
"typings": "dist/aurelia-path.d.ts", | ||
@@ -18,0 +19,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
92595
43
2174