Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@glimmer/util

Package Overview
Dependencies
Maintainers
13
Versions
288
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimmer/util - npm Package Compare versions

Comparing version 0.85.12 to 0.85.13

56

dist/dev/index.js

@@ -166,10 +166,2 @@ import { DEBUG } from '@glimmer/env';

const LOCAL_DEBUG = DEBUG && (() => {
let location = typeof window !== 'undefined' && window.location;
if (location && /[&?]disable_local_debug/u.test(window.location.search)) {
return false;
}
return true;
})();
/// <reference types="qunit" />

@@ -181,29 +173,2 @@

let logStep;
if (LOCAL_DEBUG) {
let LOGGED_STEPS = null;
beginTestSteps = () => {
debugAssert(LOGGED_STEPS === null, 'attempted to start steps, but it already began');
LOGGED_STEPS = {};
};
endTestSteps = () => {
debugAssert(LOGGED_STEPS, 'attempted to end steps, but they were not started');
LOGGED_STEPS = null;
};
logStep = (type, step) => {
if (LOGGED_STEPS === null) return;
let steps = LOGGED_STEPS[type];
if (!steps) steps = LOGGED_STEPS[type] = [];
steps.push(step);
};
verifySteps = (type, expectedSteps, message) => {
let loggedSteps = expect(LOGGED_STEPS, 'attempetd to verify steps, but steps were not started');
let steps = loggedSteps[type] || [];
loggedSteps[type] = [];
if (Array.isArray(expectedSteps)) {
QUnit.config.current.assert.deepEqual(steps, expectedSteps, message);
} else {
expectedSteps(steps);
}
};
}

@@ -349,35 +314,17 @@ let debugToString;

function encodeNegative(num) {
if (LOCAL_DEBUG) {
debugAssert(num % 1 === 0 && num >= ImmediateConstants.MIN_INT && num < 0, `Could not encode negative: ${num}`);
}
return num & ImmediateConstants.SIGN_BIT;
}
function decodeNegative(num) {
if (LOCAL_DEBUG) {
debugAssert(num % 1 === 0 && num < ~ImmediateConstants.MAX_INT && num >= ImmediateConstants.MIN_SMI, `Could not decode negative: ${num}`);
}
return num | ~ImmediateConstants.SIGN_BIT;
}
function encodePositive(num) {
if (LOCAL_DEBUG) {
debugAssert(num % 1 === 0 && num >= 0 && num <= ImmediateConstants.MAX_INT, `Could not encode positive: ${num}`);
}
return ~num;
}
function decodePositive(num) {
if (LOCAL_DEBUG) {
debugAssert(num % 1 === 0 && num <= 0 && num >= ~ImmediateConstants.MAX_INT, `Could not decode positive: ${num}`);
}
return ~num;
}
function encodeHandle(num) {
if (LOCAL_DEBUG) {
debugAssert(num % 1 === 0 && num >= 0 && num <= ImmediateConstants.MAX_SMI, `Could not encode handle: ${num}`);
}
return num;
}
function decodeHandle(num) {
if (LOCAL_DEBUG) {
debugAssert(num % 1 === 0 && num <= ImmediateConstants.MAX_SMI && num >= 0, `Could not decode handle: ${num}`);
}
return num;

@@ -393,5 +340,2 @@ }

}
// Warm
[1, 2, 3].forEach(x => decodeHandle(encodeHandle(x)));
[1, -1].forEach(x => decodeImmediate(encodeImmediate(x)));

@@ -398,0 +342,0 @@

6

package.json
{
"name": "@glimmer/util",
"type": "module",
"version": "0.85.12",
"version": "0.85.13",
"description": "Common utilities used in Glimmer",

@@ -10,3 +10,3 @@ "repository": "https://github.com/tildeio/glimmer/tree/master/packages/@glimmer/util",

"@glimmer/env": "0.1.7",
"@glimmer/interfaces": "^0.85.12"
"@glimmer/interfaces": "^0.85.13"
},

@@ -23,3 +23,3 @@ "files": [

"@glimmer-workspace/build-support": "^1.0.0",
"@glimmer/local-debug-flags": "^0.85.12"
"@glimmer/local-debug-flags": "^0.85.13"
},

@@ -26,0 +26,0 @@ "main": null,

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc