Comparing version 1.0.0 to 1.0.1
1.0.1 / 2016-09-25 | ||
================== | ||
* fix: properly handle files without an extension (#23) | ||
1.0.0 / 2016-09-19 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -147,3 +147,3 @@ 'use strict' | ||
get type () { | ||
return extension(this.path) | ||
return extension(this.basename) || this.basename.toLowerCase() | ||
} | ||
@@ -150,0 +150,0 @@ |
{ | ||
"name": "mako-tree", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "./lib/tree", | ||
@@ -5,0 +5,0 @@ "description": "The build tree structure used internally by mako", |
@@ -10,2 +10,3 @@ # mako-tree | ||
[![npm dev dependencies][david-dev-badge]][david-dev] | ||
[![nsp status][nsp-badge]][nsp] | ||
[![code style][standard-badge]][standard] | ||
@@ -225,14 +226,16 @@ | ||
[mako]: https://github.com/makojs/core | ||
[coveralls-badge]: https://img.shields.io/coveralls/makojs/tree.svg | ||
[coveralls]: https://coveralls.io/github/makojs/tree | ||
[coveralls-badge]: https://img.shields.io/coveralls/makojs/tree.svg | ||
[david]: https://david-dm.org/makojs/tree | ||
[david-badge]: https://img.shields.io/david/makojs/tree.svg | ||
[david-dev-badge]: https://img.shields.io/david/dev/makojs/tree.svg | ||
[david-dev]: https://david-dm.org/makojs/tree#info=devDependencies | ||
[david-dev-badge]: https://img.shields.io/david/dev/makojs/tree.svg | ||
[david]: https://david-dm.org/makojs/tree | ||
[mako]: https://github.com/makojs/core | ||
[npm-badge]: https://img.shields.io/npm/v/mako-tree.svg | ||
[npm]: https://www.npmjs.com/package/mako-tree | ||
[npm-badge]: https://img.shields.io/npm/v/mako-tree.svg | ||
[nsp-badge]: https://nodesecurity.io/orgs/mako/projects/a77a3cfc-85a9-48d0-997a-4057eebb8bea/badge | ||
[nsp]: https://nodesecurity.io/orgs/mako/projects/a77a3cfc-85a9-48d0-997a-4057eebb8bea | ||
[standard-badge]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg | ||
[standard]: http://standardjs.com/ | ||
[standard-badge]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg | ||
[travis-badge]: https://img.shields.io/travis/makojs/tree.svg | ||
[travis]: https://travis-ci.org/makojs/tree | ||
[travis-badge]: https://img.shields.io/travis/makojs/tree.svg |
@@ -223,2 +223,12 @@ /* eslint-env mocha */ | ||
}) | ||
it('should use the basename when it has no extension', function () { | ||
let file = new File('CNAME') | ||
assert.strictEqual(file.type, 'cname') | ||
}) | ||
it('should only use the basename when determining extension', function () { | ||
let file = new File('example.com/CNAME') | ||
assert.strictEqual(file.type, 'cname') | ||
}) | ||
}) | ||
@@ -225,0 +235,0 @@ |
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
69036
1511
240