Comparing version 2.0.0 to 2.1.0
@@ -49,3 +49,3 @@ 'use strict'; | ||
module.exports = (name, options) => { | ||
const envPaths = (name, options) => { | ||
if (typeof name !== 'string') { | ||
@@ -72,1 +72,4 @@ throw new TypeError(`Expected string, got ${typeof name}`); | ||
}; | ||
module.exports = envPaths; | ||
module.exports.default = envPaths; |
{ | ||
"name": "env-paths", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Get paths for storing things like data, config, cache, etc", | ||
@@ -16,6 +16,7 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "xo && ava" | ||
"test": "xo && ava && tsd-check" | ||
}, | ||
"files": [ | ||
"index.js" | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
@@ -41,5 +42,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"xo": "^0.23.0" | ||
"ava": "^1.2.1", | ||
"tsd-check": "^0.3.0", | ||
"xo": "^0.24.0" | ||
} | ||
} |
@@ -19,2 +19,3 @@ # env-paths [![Build Status](https://travis-ci.org/sindresorhus/env-paths.svg?branch=master)](https://travis-ci.org/sindresorhus/env-paths) | ||
const envPaths = require('env-paths'); | ||
const paths = envPaths('MyApp'); | ||
@@ -21,0 +22,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
6066
5
98
77
3