This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ./postinstall.js | |
'use strict'; | |
const fs = require('fs'); | |
const RN_TSD = __dirname + '/node_modules/@types/react-native/index.d.ts'; | |
const raw = fs.readFileSync(RN_TSD); | |
// Fix @types/node conflict | |
// @see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15960 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
module.exports = function VError(message, extra) { | |
Error.captureStackTrace(this, this.constructor); | |
this.name = this.constructor.name; | |
this.message = message; | |
this.extra = extra; | |
}; | |
require('util').inherits(module.exports, Error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// zipping: | |
// zip -e target.zip file.something #...prompt for password | |
// unzipping: | |
// 7z e target.zip -pPASSWORD | |
//////////////////// | |
function Dictionary(ab) { | |
this.ab = ab; |