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

mako-tree

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mako-tree - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

HISTORY.md
1.0.1 / 2016-09-25
==================
* fix: properly handle files without an extension (#23)
1.0.0 / 2016-09-19

@@ -3,0 +8,0 @@ ==================

2

lib/file.js

@@ -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 @@

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