Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@ot-builder/errors

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ot-builder/errors - npm Package Compare versions

Comparing version
1.1.2
to
1.2.0
+15
-0
CHANGELOG.json

@@ -5,2 +5,17 @@ {

{
"date": "Sat, 09 Oct 2021 01:05:28 GMT",
"tag": "@ot-builder/errors_v1.2.0",
"version": "1.2.0",
"comments": {
"minor": [
{
"author": "otbbuilder-dev@users.noreply.github.com",
"package": "@ot-builder/errors",
"comment": "Add support for VTT private tables",
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
}
]
}
},
{
"date": "Sat, 11 Sep 2021 01:09:21 GMT",

@@ -7,0 +22,0 @@ "tag": "@ot-builder/errors_v1.1.1",

+9
-1
# Change Log - @ot-builder/errors
This log was last generated on Sat, 11 Sep 2021 01:09:21 GMT and should not be manually modified.
This log was last generated on Sat, 09 Oct 2021 01:05:28 GMT and should not be manually modified.
<!-- Start content -->
## 1.2.0
Sat, 09 Oct 2021 01:05:28 GMT
### Minor changes
- Add support for VTT private tables (otbbuilder-dev@users.noreply.github.com)
## 1.1.1

@@ -8,0 +16,0 @@

@@ -5,2 +5,3 @@ export declare const VersionSupported: (kind1: string, actual: number, ...expected: number[]) => void;

export declare const SizeMatch: (kind1: string, actual: number, ...expected: number[]) => void;
export declare const TagMatch: (kind1: string, actual: string, ...expected: string[]) => void;
export declare const OffsetMatch: (kind1: string, actual: number, ...expected: number[]) => void;

@@ -7,0 +8,0 @@ export declare const NotOverflow: (kind1: string, actual: number, limit: number) => void;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.NoGap = exports.NotOverflow = exports.OffsetMatch = exports.SizeMatch = exports.FormatSupported = exports.SubVersionSupported = exports.VersionSupported = void 0;
exports.NoGap = exports.NotOverflow = exports.OffsetMatch = exports.TagMatch = exports.SizeMatch = exports.FormatSupported = exports.SubVersionSupported = exports.VersionSupported = void 0;
const Errors = require("../errors");

@@ -33,2 +33,9 @@ const VersionSupported = (kind1, actual, ...expected) => {

exports.SizeMatch = SizeMatch;
const TagMatch = (kind1, actual, ...expected) => {
for (const x of expected)
if (actual === x)
return;
throw Errors.TagMismatch(kind1, actual, ...expected);
};
exports.TagMatch = TagMatch;
const OffsetMatch = (kind1, actual, ...expected) => {

@@ -35,0 +42,0 @@ for (const x of expected)

@@ -6,2 +6,3 @@ export declare const Unreachable: () => Error;

export declare const SizeMismatch: (what: string, actual: number, ...expected: number[]) => TypeError;
export declare const TagMismatch: (what: string, actual: string, ...expected: string[]) => TypeError;
export declare const OffsetMismatch: (what: string, actual: number, ...expected: number[]) => TypeError;

@@ -8,0 +9,0 @@ export declare const MissingKeyTable: (tag: string) => TypeError;

+3
-1
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GlyphCountMismatch = exports.GlyphNotFound = exports.GeneralOverflow = exports.MissingKeyTable = exports.OffsetMismatch = exports.SizeMismatch = exports.VersionNotSupported = exports.FormatNotSupported = exports.NullPtr = exports.Unreachable = void 0;
exports.GlyphCountMismatch = exports.GlyphNotFound = exports.GeneralOverflow = exports.MissingKeyTable = exports.OffsetMismatch = exports.TagMismatch = exports.SizeMismatch = exports.VersionNotSupported = exports.FormatNotSupported = exports.NullPtr = exports.Unreachable = void 0;
const Unreachable = () => new Error("Unreachable");

@@ -14,2 +14,4 @@ exports.Unreachable = Unreachable;

exports.SizeMismatch = SizeMismatch;
const TagMismatch = (what, actual, ...expected) => new TypeError(`${what} tag mismatch : ${actual} (Expected: ${expected})`);
exports.TagMismatch = TagMismatch;
const OffsetMismatch = (what, actual, ...expected) => new TypeError(`${what} offset mismatch : ${expected} (Expected: ${expected})`);

@@ -16,0 +18,0 @@ exports.OffsetMismatch = OffsetMismatch;

{
"name": "@ot-builder/errors",
"description": "",
"version": "1.1.2",
"version": "1.2.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": {