@fluidframework/common-utils
Advanced tools
Comparing version 0.23.0-3057 to 0.23.0
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/common-utils"; | ||
export declare const pkgVersion = "0.23.0-3057"; | ||
export declare const pkgVersion = "0.23.0"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
exports.pkgName = "@fluidframework/common-utils"; | ||
exports.pkgVersion = "0.23.0-3057"; | ||
exports.pkgVersion = "0.23.0"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -6,7 +6,4 @@ "use strict"; | ||
*/ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const assert_1 = __importDefault(require("assert")); | ||
const assert_1 = require("assert"); | ||
/** | ||
@@ -68,3 +65,3 @@ * A deferred creates a promise and the ability to resolve or reject it | ||
promise.catch((error) => { | ||
assert_1.default.ok(false); | ||
assert_1.strict.ok(false); | ||
}); | ||
@@ -71,0 +68,0 @@ return promise; |
@@ -10,3 +10,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const assert_1 = __importDefault(require("assert")); | ||
const assert_1 = require("assert"); | ||
// eslint-disable-next-line import/no-internal-modules | ||
@@ -72,5 +72,5 @@ const cloneDeep_1 = __importDefault(require("lodash/cloneDeep")); | ||
// below to check invariants | ||
assert_1.default(primary >= this.lastPrimary); | ||
assert_1.strict(primary >= this.lastPrimary); | ||
if (this.lastSecondary !== undefined) { | ||
assert_1.default(secondary >= this.lastSecondary); | ||
assert_1.strict(secondary >= this.lastSecondary); | ||
} | ||
@@ -119,3 +119,3 @@ this.lastPrimary = primary; | ||
get(primary) { | ||
assert_1.default(primary >= this.ranges[0].primary); | ||
assert_1.strict(primary >= this.ranges[0].primary); | ||
// Find the first range where the starting position is greater than the primary. Our target range is | ||
@@ -129,3 +129,3 @@ // the one before it. | ||
} | ||
assert_1.default(primary >= this.ranges[index - 1].primary); | ||
assert_1.strict(primary >= this.ranges[index - 1].primary); | ||
// If the difference is within the stored range use it - otherwise add in the length - 1 as the highest | ||
@@ -142,3 +142,3 @@ // stored secondary value to use. | ||
updateBase(primary) { | ||
assert_1.default(primary >= this.ranges[0].primary); | ||
assert_1.strict(primary >= this.ranges[0].primary); | ||
// Walk the ranges looking for the first one that is greater than the primary. Primary is then within the | ||
@@ -153,3 +153,3 @@ // previous index by definition (since it's less than the current index's primary but greather than the | ||
} | ||
assert_1.default(primary >= this.ranges[index - 1].primary); | ||
assert_1.strict(primary >= this.ranges[index - 1].primary); | ||
// Update the last range values | ||
@@ -164,3 +164,3 @@ const range = this.ranges[index - 1]; | ||
// Assert that the lowest value is now the input to this method | ||
assert_1.default.equal(primary, this.ranges[0].primary); | ||
assert_1.strict.equal(primary, this.ranges[0].primary); | ||
} | ||
@@ -167,0 +167,0 @@ } |
@@ -8,3 +8,3 @@ /*! | ||
export declare const pkgName = "@fluidframework/common-utils"; | ||
export declare const pkgVersion = "0.23.0-3057"; | ||
export declare const pkgVersion = "0.23.0"; | ||
//# sourceMappingURL=packageVersion.d.ts.map |
@@ -8,3 +8,3 @@ /*! | ||
export const pkgName = "@fluidframework/common-utils"; | ||
export const pkgVersion = "0.23.0-3057"; | ||
export const pkgVersion = "0.23.0"; | ||
//# sourceMappingURL=packageVersion.js.map |
@@ -5,3 +5,3 @@ /*! | ||
*/ | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
/** | ||
@@ -8,0 +8,0 @@ * A deferred creates a promise and the ability to resolve or reject it |
@@ -5,3 +5,3 @@ /*! | ||
*/ | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
// eslint-disable-next-line import/no-internal-modules | ||
@@ -8,0 +8,0 @@ import cloneDeep from "lodash/cloneDeep"; |
{ | ||
"name": "@fluidframework/common-utils", | ||
"version": "0.23.0-3057", | ||
"version": "0.23.0", | ||
"description": "Collection of utility functions for Fluid", | ||
@@ -69,3 +69,3 @@ "homepage": "https://fluidframework.com", | ||
"dependencies": { | ||
"@fluidframework/common-definitions": "^0.19.1-0", | ||
"@fluidframework/common-definitions": "^0.19.1", | ||
"@types/events": "^3.0.0", | ||
@@ -80,4 +80,4 @@ "assert": "^2.0.0", | ||
"devDependencies": { | ||
"@fluidframework/build-common": "^0.19.2-0", | ||
"@fluidframework/eslint-config-fluid": "^0.19.1-0", | ||
"@fluidframework/build-common": "^0.19.2", | ||
"@fluidframework/eslint-config-fluid": "^0.19.1", | ||
"@microsoft/api-extractor": "^7.7.2", | ||
@@ -84,0 +84,0 @@ "@types/assert": "^1.5.1", |
@@ -9,2 +9,2 @@ /*! | ||
export const pkgName = "@fluidframework/common-utils"; | ||
export const pkgVersion = "0.23.0-3057"; | ||
export const pkgVersion = "0.23.0"; |
@@ -6,3 +6,3 @@ /*! | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
@@ -9,0 +9,0 @@ /** |
@@ -6,3 +6,3 @@ /*! | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
@@ -9,0 +9,0 @@ // eslint-disable-next-line import/no-internal-modules |
@@ -6,3 +6,3 @@ /*! | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
import { BatchManager } from "../src"; | ||
@@ -9,0 +9,0 @@ |
@@ -6,3 +6,3 @@ /*! | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
import { EventEmitter } from "events"; | ||
@@ -9,0 +9,0 @@ import { IErrorEvent } from "@fluidframework/common-definitions"; |
@@ -6,3 +6,3 @@ /*! | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
import { SinonFakeTimers, useFakeTimers } from "sinon"; | ||
@@ -9,0 +9,0 @@ import { PromiseCache } from "../src"; |
@@ -6,3 +6,3 @@ /*! | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
import { RangeTracker } from "../src"; | ||
@@ -9,0 +9,0 @@ |
@@ -5,3 +5,3 @@ /*! | ||
*/ | ||
import assert from "assert"; | ||
import { strict as assert } from "assert"; | ||
import { IErrorEvent } from "@fluidframework/common-definitions"; | ||
@@ -8,0 +8,0 @@ import { TypedEventEmitter } from "../src"; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
653013
6982