Skip to content

Commit

Permalink
release v8.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMessinger committed Oct 11, 2019
1 parent 2ee70ff commit 2848987
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 25 deletions.
40 changes: 31 additions & 9 deletions online/js/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,10 @@ function fromByteArray (uint8) {

var base64 = require('base64-js')
var ieee754 = require('ieee754')
var customInspectSymbol = typeof Symbol === 'function' ? Symbol.for('nodejs.util.inspect.custom') : null
var customInspectSymbol =
(typeof Symbol === 'function' && typeof Symbol.for === 'function')
? Symbol.for('nodejs.util.inspect.custom')
: null

exports.Buffer = Buffer
exports.SlowBuffer = SlowBuffer
Expand Down Expand Up @@ -1880,7 +1883,7 @@ function hexSlice (buf, start, end) {

var out = ''
for (var i = start; i < end; ++i) {
out += toHex(buf[i])
out += hexSliceLookupTable[buf[i]]
}
return out
}
Expand Down Expand Up @@ -2407,6 +2410,8 @@ Buffer.prototype.fill = function fill (val, start, end, encoding) {
}
} else if (typeof val === 'number') {
val = val & 255
} else if (typeof val === 'boolean') {
val = Number(val)
}

// Invalid ranges are not set to a default, so can range check early.
Expand Down Expand Up @@ -2464,11 +2469,6 @@ function base64clean (str) {
return str
}

function toHex (n) {
if (n < 16) return '0' + n.toString(16)
return n.toString(16)
}

function utf8ToBytes (string, units) {
units = units || Infinity
var codePoint
Expand Down Expand Up @@ -2599,6 +2599,20 @@ function numberIsNaN (obj) {
return obj !== obj // eslint-disable-line no-self-compare
}

// Create lookup table for `toString('hex')`
// See: https://github.com/feross/buffer/issues/219
var hexSliceLookupTable = (function () {
var alphabet = '0123456789abcdef'
var table = new Array(256)
for (var i = 0; i < 16; ++i) {
var i16 = i * 16
for (var j = 0; j < 16; ++j) {
table[i16 + j] = alphabet[i] + alphabet[j]
}
}
return table
})()

}).call(this,require("buffer").Buffer)

},{"base64-js":6,"buffer":8,"ieee754":35}],9:[function(require,module,exports){
Expand Down Expand Up @@ -17817,6 +17831,7 @@ const isomorphic_node_1 = require("./isomorphic.node");
const ono_1 = require("./ono");
exports.Ono = ono_1.Ono;
exports.ono = ono_1.ono;
const to_json_1 = require("./to-json");
// Create Ono instances for each of the JavaScript error types
ono_1.ono.error = new ono_1.Ono(Error);
ono_1.ono.eval = new ono_1.Ono(EvalError);
Expand All @@ -17827,14 +17842,21 @@ ono_1.ono.type = new ono_1.Ono(TypeError);
ono_1.ono.uri = new ono_1.Ono(URIError);
// Default to Node's `util.format()` functionality, but allow users to substitute their own
ono_1.ono.formatter = isomorphic_node_1.formatter;
/**
* Returns an object containing all properties of the given Error object,
* which can be used with `JSON.stringify()`.
*/
ono_1.Ono.toJSON = function toJSON(error) {
return to_json_1.toJSON.call(error);
};
// tslint:disable-next-line: no-default-export
exports.default = ono_1.ono;
// CommonJS default export hack
if (typeof module === "object" && typeof module.exports === "object") {
module.exports = Object.assign(module.exports.default, module.exports); // tslint:disable-line: no-unsafe-any
}

},{"./isomorphic.node":91,"./ono":92}],91:[function(require,module,exports){
},{"./isomorphic.node":91,"./ono":92,"./to-json":94}],91:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
Expand Down Expand Up @@ -17893,7 +17915,7 @@ function Ono(klass) {
formatArgs = args.slice(2);
}
// If there are any format arguments, then format the error message
if (formatArgs && formatArgs.length > 0) {
if (formatArgs.length > 0) {
formattedMessage = onoSingleton.formatter.apply(undefined, formatArgs);
}
if (originalError && originalError.message) {
Expand Down
8 changes: 4 additions & 4 deletions online/js/bundle.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions online/js/bundle.min.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions online/js/bundle.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swagger-parser",
"version": "8.0.1",
"version": "8.0.2",
"description": "Swagger 2.0 and OpenAPI 3.0 parser and validator for Node and browsers",
"keywords": [
"swagger",
Expand Down

0 comments on commit 2848987

Please sign in to comment.