Skip to content

Commit

Permalink
Merge pull request #1 from dword-design/renovate/lock-file-maintenance
Browse files Browse the repository at this point in the history
chore(deps): lock file maintenance
  • Loading branch information
dword-design committed Jul 4, 2020
2 parents c6115e3 + 598f30b commit 62a80a1
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 23 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<!-- BADGES/ -->
[![NPM version](https://img.shields.io/npm/v/@dword-design/chdir.svg)](https://npmjs.org/package/@dword-design/chdir)
![Linux macOS Windows compatible](https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue)
[![Build status](https://img.shields.io/github/workflow/status/dword-design/node-chdir/build)](https://github.com/dword-design/node-chdir/actions)
[![Coverage status](https://img.shields.io/coveralls/dword-design/node-chdir)](https://coveralls.io/github/dword-design/node-chdir)
[![Dependency status](https://img.shields.io/david/dword-design/node-chdir)](https://david-dm.org/dword-design/node-chdir)
[![Build status](https://img.shields.io/github/workflow/status/dword-design/chdir/build)](https://github.com/dword-design/chdir/actions)
[![Coverage status](https://img.shields.io/coveralls/dword-design/chdir)](https://coveralls.io/github/dword-design/chdir)
[![Dependency status](https://img.shields.io/david/dword-design/chdir)](https://david-dm.org/dword-design/chdir)
![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen)

[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/dword-design/node-chdir)
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/dword-design/chdir)
<!-- /BADGES -->

<!-- DESCRIPTION/ -->
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"popd",
"directory"
],
"repository": "dword-design/node-chdir",
"repository": "dword-design/chdir",
"license": "MIT",
"author": "Sebastian Landwehr <info@dword-design.de>",
"main": "dist/index.js",
Expand All @@ -27,7 +27,8 @@
"dependencies": {},
"devDependencies": {
"@dword-design/base": "^6.20.2",
"delay": "^4.3.0"
"delay": "^4.3.0",
"fs-extra": "^9.0.1"
},
"publishConfig": {
"access": "public"
Expand Down
22 changes: 13 additions & 9 deletions src/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
import delay from 'delay'
import { mkdir, remove } from 'fs-extra'
import P from 'path'

import self from '.'

export default {
afterEach: () => remove('foo'),
'async: valid': async () => {
const cwd = process.cwd()
let path
await self('/tmp', async () => {
await self('foo', async () => {
await delay(10)
path = process.cwd()
})
expect(path).toEqual('/private/tmp')
expect(path).toEqual(P.resolve('foo'))
expect(process.cwd()).toEqual(cwd)
},
beforeEach: () => mkdir('foo'),
'error: async': async () => {
const cwd = process.cwd()
await expect(
self('/tmp', async () => {
self('foo', async () => {
await delay(10)
throw new Error('foo')
})
Expand All @@ -26,7 +30,7 @@ export default {
'error: sync': async () => {
const cwd = process.cwd()
await expect(() =>
self('/tmp', () => {
self('foo', () => {
throw new Error('foo')
})
).rejects.toThrow('foo')
Expand All @@ -37,23 +41,23 @@ export default {
let path
let path2
let path3
await self('/tmp', async () => {
await self('foo', async () => {
path = process.cwd()
await self(cwd, () => {
path2 = process.cwd()
})
path3 = process.cwd()
})
expect(path).toEqual('/private/tmp')
expect(path).toEqual(P.resolve('foo'))
expect(path2).toEqual(cwd)
expect(path3).toEqual('/private/tmp')
expect(path3).toEqual(P.resolve('foo'))
expect(process.cwd()).toEqual(cwd)
},
valid: async () => {
const cwd = process.cwd()
let path
await self('/tmp', () => (path = process.cwd()))
expect(path).toEqual('/private/tmp')
await self('foo', () => (path = process.cwd()))
expect(path).toEqual(P.resolve('foo'))
expect(process.cwd()).toEqual(cwd)
},
}
48 changes: 40 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2852,7 +2852,7 @@ debug@^2.2.0, debug@^2.3.3, debug@^2.6.9:
dependencies:
ms "2.0.0"

debuglog@^1.0.1:
debuglog@*, debuglog@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/debuglog/-/debuglog-1.0.1.tgz#aa24ffb9ac3df9a2351837cfb2d279360cd78492"
integrity sha1-qiT/uaw9+aI1GDfPstJ5NgzXhJI=
Expand Down Expand Up @@ -2977,7 +2977,7 @@ depcheck-parser-babel@^1.2.0:
"@babel/core" "^7.7.7"
fs-extra "^9.0.0"

depcheck@dword-design/depcheck#fork:
"depcheck@github:dword-design/depcheck#fork":
version "0.0.1"
resolved "https://codeload.github.com/dword-design/depcheck/tar.gz/8a9eb41006c2c6f9cbd79e4e68bf265e1c1df1dc"
dependencies:
Expand Down Expand Up @@ -3197,7 +3197,7 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0:
dependencies:
once "^1.4.0"

endent@dword-design/endent#fork:
endent@dword-design/endent#fork, "endent@github:dword-design/endent#fork":
version "1.4.0"
resolved "https://codeload.github.com/dword-design/endent/tar.gz/be5433db67eaec07c6c9d00ba3bed2ed946dc664"
dependencies:
Expand Down Expand Up @@ -3335,7 +3335,7 @@ eslint-module-utils@^2.4.1:
debug "^2.6.9"
pkg-dir "^2.0.0"

eslint-plugin-import@dword-design/eslint-plugin-import#fork:
"eslint-plugin-import@github:dword-design/eslint-plugin-import#fork":
version "2.20.1"
resolved "https://codeload.github.com/dword-design/eslint-plugin-import/tar.gz/092878bcc1f9b7ef80ca755bfd77e13b15aa9ef3"
dependencies:
Expand Down Expand Up @@ -4002,7 +4002,7 @@ fs-extra@8.1.0:
jsonfile "^4.0.0"
universalify "^0.1.0"

fs-extra@^9.0.0:
fs-extra@^9.0.0, fs-extra@^9.0.1:
version "9.0.1"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-9.0.1.tgz#910da0062437ba4c39fedd863f1675ccfefcb9fc"
integrity sha512-h2iAoN838FqAFJY2/qVpzFXy+EBxfVE220PalAqQLDVsFOHLJrZvut5puAbCdNv6WJk+B8ihI+k0c7JK5erwqQ==
Expand Down Expand Up @@ -4627,7 +4627,7 @@ import-lazy@^2.1.0:
resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-2.1.0.tgz#05698e3d45c88e8d7e9d92cb0584e77f096f3e43"
integrity sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=

imurmurhash@^0.1.4:
imurmurhash@*, imurmurhash@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
integrity sha1-khi5srkoojixPcT7a21XbyMUU+o=
Expand Down Expand Up @@ -5708,6 +5708,11 @@ lockfile@^1.0.4:
dependencies:
signal-exit "^3.0.2"

lodash._baseindexof@*:
version "3.1.0"
resolved "https://registry.yarnpkg.com/lodash._baseindexof/-/lodash._baseindexof-3.1.0.tgz#fe52b53a1c6761e42618d654e4a25789ed61822c"
integrity sha1-/lK1OhxnYeQmGNZU5KJXie1hgiw=

lodash._baseuniq@~4.6.0:
version "4.6.0"
resolved "https://registry.yarnpkg.com/lodash._baseuniq/-/lodash._baseuniq-4.6.0.tgz#0ebb44e456814af7905c6212fa2c9b2d51b841e8"
Expand All @@ -5716,11 +5721,33 @@ lodash._baseuniq@~4.6.0:
lodash._createset "~4.0.0"
lodash._root "~3.0.0"

lodash._bindcallback@*:
version "3.0.1"
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"
integrity sha1-5THCdkTPi1epnhftlbNcdIeJOS4=

lodash._cacheindexof@*:
version "3.0.2"
resolved "https://registry.yarnpkg.com/lodash._cacheindexof/-/lodash._cacheindexof-3.0.2.tgz#3dc69ac82498d2ee5e3ce56091bafd2adc7bde92"
integrity sha1-PcaayCSY0u5ePOVgkbr9Ktx73pI=

lodash._createcache@*:
version "3.1.2"
resolved "https://registry.yarnpkg.com/lodash._createcache/-/lodash._createcache-3.1.2.tgz#56d6a064017625e79ebca6b8018e17440bdcf093"
integrity sha1-VtagZAF2JeeevKa4AY4XRAvc8JM=
dependencies:
lodash._getnative "^3.0.0"

lodash._createset@~4.0.0:
version "4.0.3"
resolved "https://registry.yarnpkg.com/lodash._createset/-/lodash._createset-4.0.3.tgz#0f4659fbb09d75194fa9e2b88a6644d363c9fe26"
integrity sha1-D0ZZ+7CddRlPqeK4imZE02PJ/iY=

lodash._getnative@*, lodash._getnative@^3.0.0:
version "3.9.1"
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"
integrity sha1-VwvH3t5G1hzc3mh9ZdPuy6o6r/U=

lodash._root@~3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692"
Expand Down Expand Up @@ -5771,6 +5798,11 @@ lodash.map@^4.5.1:
resolved "https://registry.yarnpkg.com/lodash.map/-/lodash.map-4.6.0.tgz#771ec7839e3473d9c4cde28b19394c3562f4f6d3"
integrity sha1-dx7Hg540c9nEzeKLGTlMNWL09tM=

lodash.restparam@*:
version "3.6.1"
resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805"
integrity sha1-k2pOMJ7zMKdkXtQUWYbIWuWyCAU=

lodash.toarray@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/lodash.toarray/-/lodash.toarray-4.4.0.tgz#24c4bfcd6b2fba38bfd0594db1179d8e9b656561"
Expand Down Expand Up @@ -7317,7 +7349,7 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@prettier/prettier#19545e049ea424273fb6d647eefd1787d998b333:
"prettier@github:prettier/prettier#19545e049ea424273fb6d647eefd1787d998b333":
version "2.1.0-dev"
resolved "https://codeload.github.com/prettier/prettier/tar.gz/19545e049ea424273fb6d647eefd1787d998b333"
dependencies:
Expand Down Expand Up @@ -8063,7 +8095,7 @@ safe-regex@^1.1.0:
dependencies:
ret "~0.1.10"

safe-require@dword-design/node-safe-require#fork:
"safe-require@github:dword-design/node-safe-require#fork":
version "1.0.3"
resolved "https://codeload.github.com/dword-design/node-safe-require/tar.gz/53682cf7aa25d784c6278f8ccbc9986ad0dd5f38"

Expand Down

0 comments on commit 62a80a1

Please sign in to comment.