Permalink
Browse files

Other: Moved a few things out of the root folder

  • Loading branch information...
dcodeIO committed Mar 11, 2017
1 parent ac26a7a commit 95cd64ee514dc60d10daac5180726ff39594e8e8
@@ -5,7 +5,7 @@ engines:
tslint:
enabled: true
channel: beta
config: tslint.json
config: .tslint.json
ratings:
paths:
- "src/**.js"
@@ -3,12 +3,12 @@ cli/wrappers/*
coverage/*
dist/*
docs/*
gulpfile.js
lib/deep-equal/*
lib/prelude.js
lib/polyfill.js
lib/tape-adapter.js
lib/tsd-jsdoc/*
lib/*/tests/*
sandbox/*
scripts/*
tests/*
File renamed without changes.
@@ -98,7 +98,7 @@ exports.main = function(args, callback) {
// There is no proper API for jsdoc, so this executes the CLI and pipes the output
var basedir = path.join(__dirname, "..");
var moduleName = argv.name || "null";
var cmd = "node \"" + require.resolve("jsdoc/jsdoc.js") + "\" -c \"" + path.join(basedir, "jsdoc.types.json") + "\" -q \"module=" + encodeURIComponent(moduleName) + "&comments=" + Boolean(argv.comments) + "\" " + files.map(function(file) { return "\"" + file + "\""; }).join(" ");
var cmd = "node \"" + require.resolve("jsdoc/jsdoc.js") + "\" -c \"" + path.join(basedir, "scripts", "jsdoc.types.json") + "\" -q \"module=" + encodeURIComponent(moduleName) + "&comments=" + Boolean(argv.comments) + "\" " + files.map(function(file) { return "\"" + file + "\""; }).join(" ");
var child = child_process.exec(cmd, {
cwd: process.cwd(),
argv0: "node",

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
BIN -17 Bytes (100%) dist/light/protobuf.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
BIN -32 Bytes (99%) dist/minimal/protobuf.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
BIN -22 Bytes (100%) dist/protobuf.min.js.gz
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -2322,10 +2322,16 @@ export namespace util {
constructor(message: string, instance?: Message);
/**
* Underlying plain error.
* @type {Error}
* Error message.
* @type {string}
*/
public error: Error;
public message: string;
/**
* Stack trace.
* @type {string}
*/
public stack: string;
/**
* So far decoded message instance, if applicable.
@@ -2338,22 +2344,6 @@ export namespace util {
* @type {string}
*/
public name: string;
/**
* Error message.
* @name util.ProtocolError#message
* @type {string}
* @readonly
*/
public readonly message: string;
/**
* Stack trace.
* @name util.ProtocolError#stack
* @type {string}
* @readonly
*/
public readonly stack: string;
}
/**
@@ -25,12 +25,12 @@
},
"scripts": {
"bench": "node bench",
"build": "gulp",
"build": "gulp --gulpfile scripts/gulpfile.js",
"changelog": "node scripts/changelog -w",
"coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js tests/node/*.js",
"coverage-ci": "npm run coverage && codeclimate-test-reporter < coverage/lcov.info",
"docs": "jsdoc -c jsdoc.docs.json -R README.md --verbose --pedantic",
"lint": "eslint **/*.js && tslint **/*.d.ts -e **/node_modules/** -t stylish",
"docs": "jsdoc -c scripts/jsdoc.docs.json -R README.md --verbose --pedantic",
"lint": "eslint **/*.js && tslint **/*.d.ts -e **/node_modules/** -t stylish -c .tslint.json",
"pages": "node scripts/pages",
"prepublish": "node scripts/prepublish",
"postinstall": "node scripts/postinstall",
@@ -1,3 +1,3 @@
// deprecated - compatibility layer for v6.5 and earlier
"use strict";
module.exports = require("./minimal");
module.exports = require("./src/index-minimal");
@@ -1,5 +1,5 @@
var gulp = require("gulp"),
bundle = require("./scripts/bundle");
bundle = require("./bundle");
var defaultTask = [];
@@ -23,8 +23,8 @@ function defineTask(name, entry, target) {
defaultTask.push(name + "-bundle", name + "-minify", name + "-compress");
}
defineTask("full" , "./src/index" , "./dist" );
defineTask("light" , "./src/index-light" , "./dist/light" );
defineTask("minimal", "./src/index-minimal", "./dist/minimal");
defineTask("full" , "../src/index" , "../dist" );
defineTask("light" , "../src/index-light" , "../dist/light" );
defineTask("minimal", "../src/index-minimal", "../dist/minimal");
gulp.task("default", defaultTask);
File renamed without changes.
File renamed without changes.
@@ -26,10 +26,16 @@ function ProtocolError(message, instance) {
return new ProtocolError(message, instance);
/**
* Underlying plain error.
* @type {Error}
* Error message.
* @type {string}
*/
this.error = Error(message);
this.message = message;
/**
* Stack trace.
* @type {string}
*/
this.stack = Error(message).stack || /* istanbul ignore next */ ""; // not supported in IE9/Safari5
/**
* So far decoded message instance, if applicable.
@@ -43,30 +49,3 @@ function ProtocolError(message, instance) {
* @type {string}
*/
ProtocolError.prototype.name = "ProtocolError";
Object.defineProperties(ProtocolError.prototype, {
/**
* Error message.
* @name util.ProtocolError#message
* @type {string}
* @readonly
*/
message: {
get: function() {
return this.error.message;
}
},
/**
* Stack trace.
* @name util.ProtocolError#stack
* @type {string}
* @readonly
*/
stack: {
get: function() {
return this.error.stack;
}
}
});

0 comments on commit 95cd64e

Please sign in to comment.