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

@speedy/node-core

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@speedy/node-core - npm Package Compare versions

Comparing version 1.4.0 to 1.5.0

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="1.5.0"></a>
# [1.5.0](https://github.com/alan-agius4/speedy-node-core/compare/v1.4.0...v1.5.0) (2018-04-24)
### Features
* **file system:** add `copyAsync` method ([c50146b](https://github.com/alan-agius4/speedy-node-core/commit/c50146b))
<a name="1.4.0"></a>

@@ -2,0 +12,0 @@ # [1.4.0](https://github.com/alan-agius4/speedy-node-core/compare/v1.3.0...v1.4.0) (2017-10-23)

0

dist/args.d.ts

@@ -0,0 +0,0 @@ import { Dictionary } from "./dictionary";

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ export declare namespace config {

@@ -0,0 +0,0 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

export interface Dictionary<T> {
[key: string]: T;
}
Object.defineProperty(exports, "__esModule", { value: true });

9

dist/file-system.d.ts

@@ -1,4 +0,3 @@

import * as _ from "lodash";
export declare namespace fileSystem {
const getRootPath: (() => string) & _.MemoizedFunction;
const getRootPath: () => string;
function deleteAsync(path: string): Promise<boolean>;

@@ -26,2 +25,8 @@ function readFileAsync(path: string): Promise<string>;

function getCanonicalPath(path: string): string;
/**
* Copy an array of file globs
* @param source The glob of target files
* @param destination The path of a destination directory
*/
function copyAsync(source: string | string[], destination: string): Promise<void[]>;
}

@@ -10,2 +10,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

Object.defineProperty(exports, "__esModule", { value: true });
const cpx_1 = require("cpx");
const _ = require("lodash");

@@ -18,3 +19,3 @@ const rimraf = require("rimraf");

(function (fileSystem) {
fileSystem.getRootPath = _.memoize(() => findFileRecursively() || "");
fileSystem.getRootPath = _.once(() => findFileRecursively() || "");
function deleteAsync(path) {

@@ -100,2 +101,16 @@ // tslint:disable-next-line:no-shadowed-variable

fileSystem.getCanonicalPath = getCanonicalPath;
/**
* Copy an array of file globs
* @param source The glob of target files
* @param destination The path of a destination directory
*/
function copyAsync(source, destination) {
return Promise.all(_.chain(source)
.castArray()
.map(x => new Promise((resolve, reject) => {
cpx_1.copy(x, destination, (error) => error ? reject(error) : resolve());
}))
.value());
}
fileSystem.copyAsync = copyAsync;
})(fileSystem = exports.fileSystem || (exports.fileSystem = {}));

@@ -0,0 +0,0 @@ export * from "./args";

@@ -0,0 +0,0 @@ function __export(m) {

@@ -0,0 +0,0 @@ export declare class Logger {

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ export declare namespace packageMeta {

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ export declare namespace string {

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ import { Logger } from "./logger";

@@ -0,0 +0,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

{
"name": "@speedy/node-core",
"version": "1.4.0",
"version": "1.5.0",
"description": "Node core functions and utils.",

@@ -40,2 +40,3 @@ "main": "./dist/index.js",

"chalk": "^2.2.0",
"cpx": "^1.5.0",
"glob": "^7.1.2",

@@ -47,2 +48,3 @@ "lodash": "^4.17.4",

"@speedy/commit-msg-hook": "^1.3.0",
"@types/cpx": "^1.5.0",
"@types/glob": "^5.0.30",

@@ -49,0 +51,0 @@ "@types/jasmine": "^2.5.41",

@@ -0,0 +0,0 @@ # @speedy/node-core

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