@wrote/clone
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -41,3 +41,3 @@ let ensurePath = require('@wrote/ensure-path'); if (ensurePath && ensurePath.__esModule) ensurePath = ensurePath.default; | ||
const { content } = await readDirStructure(from) | ||
const pr = Object.keys(content).map(async (k) => { | ||
const pr = Object.keys(/** @type {!Object} */ (content)).map(async (k) => { | ||
const { type } = content[k] | ||
@@ -63,4 +63,3 @@ const p = join(from, k) | ||
const clone = async (path, to) => { | ||
/** @type {import('fs').Stats} */ | ||
const s = await makePromise(lstat, path) | ||
const s = /** @type {!fs.Stats} */ (await makePromise(lstat, path)) | ||
const b = basename(path) | ||
@@ -80,2 +79,6 @@ const t = join(to, b) | ||
module.exports=clone | ||
//# sourceMappingURL=index.js.map | ||
/** | ||
* @suppress {nonStandardJsDocs} | ||
* @typedef {import('fs').Stats} fs.Stats | ||
*/ |
## 22 April 2019 | ||
### [1.2.1](https://github.com/wrote/clone/compare/v1.2.0...v1.2.1) | ||
- [types] Fix types casting for _GCC_. | ||
### [1.2.0](https://github.com/wrote/clone/compare/v1.1.1...v1.2.0) | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "@wrote/clone", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A package to clone a file or directory.", | ||
@@ -15,3 +15,3 @@ "main": "build/index.js", | ||
"doc": "NODE_DEBUG=doc doc -o README.md", | ||
"b": "alamode src -o build", | ||
"b": "alamode src -o build -s", | ||
"d": "NODE_DEBUG=doc doc src/index.js -g", | ||
@@ -18,0 +18,0 @@ "build": "yarn-s d b doc", |
@@ -41,3 +41,3 @@ import ensurePath from '@wrote/ensure-path' | ||
const { content } = await readDirStructure(from) | ||
const pr = Object.keys(content).map(async (k) => { | ||
const pr = Object.keys(/** @type {!Object} */ (content)).map(async (k) => { | ||
const { type } = content[k] | ||
@@ -63,4 +63,3 @@ const p = join(from, k) | ||
const clone = async (path, to) => { | ||
/** @type {import('fs').Stats} */ | ||
const s = await makePromise(lstat, path) | ||
const s = /** @type {!fs.Stats} */ (await makePromise(lstat, path)) | ||
const b = basename(path) | ||
@@ -79,2 +78,7 @@ const t = join(to, b) | ||
export default clone | ||
export default clone | ||
/** | ||
* @suppress {nonStandardJsDocs} | ||
* @typedef {import('fs').Stats} fs.Stats | ||
*/ |
146
11046
6