Comparing version 0.1.18 to 0.1.19
@@ -5,6 +5,7 @@ /// <reference types="node" /> | ||
export declare let stat: (path: string) => Promise<fs.Stats>; | ||
export declare let readFile: ((path: string, options: { | ||
export declare function readFile(path: string, options: { | ||
encoding: string; | ||
flag?: string; | ||
}) => Promise<string>) & ((path: string) => Promise<Buffer>); | ||
}): Promise<string>; | ||
export declare function readFile(path: string): Promise<Buffer>; | ||
export declare type WriteOptions = { | ||
@@ -11,0 +12,0 @@ encoding?: string; |
@@ -5,10 +5,14 @@ "use strict"; | ||
var quicklyCopyFile = require("quickly-copy-file"); | ||
var RSVP = require("rsvp"); | ||
var rsvp_1 = require("rsvp"); | ||
var rimraf = require("rimraf"); | ||
var mkdirp = require("mkdirp"); | ||
exports.stat = RSVP.denodeify(fs.stat); | ||
exports.readFile = RSVP.denodeify(fs.readFile); | ||
exports.writeFile = RSVP.denodeify(fs.writeFile); | ||
exports.stat = rsvp_1.default.denodeify(fs.stat, false); | ||
var rf = rsvp_1.default.denodeify(fs.readFile, false); | ||
function readFile(path, options) { | ||
return rf(path, options); | ||
} | ||
exports.readFile = readFile; | ||
exports.writeFile = rsvp_1.default.denodeify(fs.writeFile, false); | ||
exports.copy = quicklyCopyFile; | ||
exports.remove = RSVP.denodeify(rimraf); | ||
exports.mkdirs = RSVP.denodeify(mkdirp); | ||
exports.remove = rsvp_1.default.denodeify(rimraf, false); | ||
exports.mkdirs = rsvp_1.default.denodeify(mkdirp, false); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var RSVP = require("rsvp"); | ||
var rsvp_1 = require("rsvp"); | ||
var gitconfig = require("git-config"); | ||
var gc = RSVP.denodeify(gitconfig); | ||
var gc = rsvp_1.default.denodeify(gitconfig, false); | ||
exports.default = gc; |
@@ -50,3 +50,3 @@ "use strict"; | ||
this.root = root; | ||
this.crate = new crate_1.default(this, crate); | ||
this.crate = new crate_1.default(this, { subdirectory: crate }); | ||
} | ||
@@ -53,0 +53,0 @@ Project.prototype.build = function (toolchain, release, abi) { |
{ | ||
"name": "neon-cli", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"description": "Build and load native Rust/Neon modules.", | ||
@@ -46,3 +46,3 @@ "author": "Dave Herman <dherman@mozilla.com>", | ||
"@types/rimraf": "0.0.28", | ||
"@types/rsvp": "^3.3.0", | ||
"@types/rsvp": "^3.3.1", | ||
"@types/semver": "^5.3.31", | ||
@@ -49,0 +49,0 @@ "@types/tmp": "0.0.32", |
import * as fs from 'fs'; | ||
import quicklyCopyFile = require('quickly-copy-file'); | ||
import RSVP = require('rsvp'); | ||
import RSVP from 'rsvp'; | ||
import rimraf = require('rimraf'); | ||
@@ -8,8 +8,13 @@ import mkdirp = require('mkdirp'); | ||
export let stat: (path: string) => Promise<fs.Stats> | ||
= RSVP.denodeify(fs.stat); | ||
= RSVP.denodeify(fs.stat, false); | ||
export let readFile: ((path: string, options: { encoding: string; flag?: string; }) => Promise<string>) | ||
& ((path: string) => Promise<Buffer>) | ||
= RSVP.denodeify<string | Buffer>(fs.readFile); | ||
let rf: (path: string, options?: { encoding: string; flag?: string; }) => Promise<string | Buffer> | ||
= RSVP.denodeify(fs.readFile, false); | ||
export function readFile(path: string, options: { encoding: string; flag?: string; }): Promise<string>; | ||
export function readFile(path: string): Promise<Buffer>; | ||
export function readFile(path: string, options?: { encoding: string; flag?: string; }): Promise<string | Buffer> { | ||
return rf(path, options); | ||
} | ||
export type WriteOptions = { | ||
@@ -22,3 +27,3 @@ encoding?: string, | ||
export let writeFile: (path: string, contents: string, options: WriteOptions) => Promise<void> | ||
= RSVP.denodeify<void>(fs.writeFile); | ||
= RSVP.denodeify(fs.writeFile, false); | ||
@@ -28,5 +33,5 @@ export let copy = quicklyCopyFile; | ||
export let remove: (path: string) => Promise<void> | ||
= RSVP.denodeify<void>(rimraf); | ||
= RSVP.denodeify(rimraf, false); | ||
export let mkdirs: (path: string) => Promise<void> | ||
= RSVP.denodeify<void>(mkdirp); | ||
= RSVP.denodeify(mkdirp, false); |
@@ -1,7 +0,7 @@ | ||
import * as RSVP from 'rsvp'; | ||
import RSVP from 'rsvp'; | ||
import gitconfig = require('git-config'); | ||
let gc: () => Promise<gitconfig.Dict> | ||
= RSVP.denodeify<gitconfig.Dict>(gitconfig); | ||
= RSVP.denodeify(gitconfig, false); | ||
export default gc; |
@@ -21,3 +21,3 @@ import * as path from 'path'; | ||
this.root = root; | ||
this.crate = new Crate(this, crate); | ||
this.crate = new Crate(this, { subdirectory: crate }); | ||
} | ||
@@ -24,0 +24,0 @@ |
@@ -0,1 +1,5 @@ | ||
# Version 0.1.19 | ||
* TypeScript upgrade fixes (#62, #65). | ||
# Version 0.1.18 | ||
@@ -2,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
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
117531
2713