New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@glimmer/encoder

Package Overview
Dependencies
Maintainers
15
Versions
253
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimmer/encoder - npm Package Compare versions

Comparing version 0.92.5 to 0.93.0

dist/dev/lib/encoder.d.ts

12

dist/dev/index.d.ts

@@ -1,11 +0,1 @@

import { CompilerBuffer, InstructionEncoder, MACHINE_MASK, Operand, VmMachineOp, VmOp } from "@glimmer/interfaces";
declare class InstructionEncoderImpl implements InstructionEncoder {
readonly buffer: CompilerBuffer;
constructor(buffer: CompilerBuffer);
size: number;
encode(type: VmMachineOp, machine: MACHINE_MASK, ...operands: Operand[]): void;
encode(type: VmOp, machine: 0, ...operands: Operand[]): void;
patch(position: number, target: number): void;
}
export { InstructionEncoderImpl };
//# sourceMappingURL=index.d.ts.map
export * from './lib/encoder';

@@ -7,5 +7,4 @@ import { DEBUG } from "@glimmer/env";

constructor(buffer) {
this.buffer = buffer;
this.buffer = buffer, this.size = 0;
}
size=0;
encode(type, machine, ...args) {

@@ -12,0 +11,0 @@ if (type > TYPE_SIZE) throw new Error(`Opcode type over 8-bits. Got ${type}.`);

@@ -1,11 +0,1 @@

import { CompilerBuffer, InstructionEncoder, MACHINE_MASK, Operand, VmMachineOp, VmOp } from "@glimmer/interfaces";
declare class InstructionEncoderImpl implements InstructionEncoder {
readonly buffer: CompilerBuffer;
constructor(buffer: CompilerBuffer);
size: number;
encode(type: VmMachineOp, machine: MACHINE_MASK, ...operands: Operand[]): void;
encode(type: VmOp, machine: 0, ...operands: Operand[]): void;
patch(position: number, target: number): void;
}
export { InstructionEncoderImpl };
//# sourceMappingURL=index.d.ts.map
export * from './lib/encoder';

@@ -1,2 +0,2 @@

import{TYPE_SIZE as t,ARG_SHIFT as e}from"@glimmer/vm";class r{constructor(t){this.buffer=t}size=0;encode(r,o,...s){if(r>t)throw new Error(`Opcode type over 8-bits. Got ${r}.`);let f=r|o|arguments.length-2<<e;this.buffer.push(f);for(const t of s)this.buffer.push(t);this.size=this.buffer.length}patch(t,e){if(-1!==this.buffer[t+1])throw new Error("Trying to patch operand in populated slot instead of a reserved slot.");this.buffer[t+1]=e}}export{r as InstructionEncoderImpl};
import{TYPE_SIZE as t,ARG_SHIFT as e}from"@glimmer/vm";class r{constructor(t){this.buffer=t,this.size=0}encode(r,o,...s){if(r>t)throw new Error(`Opcode type over 8-bits. Got ${r}.`);let f=r|o|arguments.length-2<<e;this.buffer.push(f);for(const t of s)this.buffer.push(t);this.size=this.buffer.length}patch(t,e){if(-1!==this.buffer[t+1])throw new Error("Trying to patch operand in populated slot instead of a reserved slot.");this.buffer[t+1]=e}}export{r as InstructionEncoderImpl};
//# sourceMappingURL=index.js.map
{
"name": "@glimmer/encoder",
"version": "0.92.5",
"version": "0.93.0",
"license": "MIT",
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/main/packages/@glimmer/encoder",
"repository": {
"type": "git",
"url": "git+https://github.com/glimmerjs/glimmer-vm.git",
"directory": "packages/@glimmer/encoder"
},
"type": "module",
"exports": {
".": {
"require": {
"development": {
"types": "./dist/dev/index.d.cts",
"default": "./dist/dev/index.cjs"
}
},
"default": {
"development": {
"types": "./dist/dev/index.d.ts",
"default": "./dist/dev/index.js"
},
"default": {
"types": "./dist/prod/index.d.ts",
"default": "./dist/prod/index.js"
}
}
"development": {
"types": "./dist/dev/index.d.ts",
"default": "./dist/dev/index.js"
},
"default": {
"types": "./dist/prod/index.d.ts",
"default": "./dist/prod/index.js"
}

@@ -34,18 +28,17 @@ },

"dependencies": {
"@glimmer/interfaces": "0.93.0",
"@glimmer/vm": "0.93.1"
"@glimmer/interfaces": "0.94.0",
"@glimmer/vm": "0.94.0"
},
"devDependencies": {
"eslint": "^8.52.0",
"publint": "^0.2.5",
"rollup": "^4.5.1",
"eslint": "^9.18.0",
"publint": "^0.3.2",
"rollup": "^4.31.0-0",
"typescript": "*",
"@glimmer-workspace/build-support": "1.0.0"
"@glimmer-workspace/build-support": "0.92.0",
"@glimmer-workspace/env": "0.92.0"
},
"scripts": {
"build": "rollup -c rollup.config.mjs",
"test:lint": "eslint .",
"test:publint": "publint",
"test:types": "tsc --noEmit -p ../tsconfig.json"
"test:lint": "eslint . --quiet",
"test:publint": "publint"
}
}

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