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

@glimmer/interfaces

Package Overview
Dependencies
Maintainers
10
Versions
282
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glimmer/interfaces - npm Package Compare versions

Comparing version 0.25.1 to 0.26.0

63

dist/types/lib/dom/simple.d.ts

@@ -13,14 +13,14 @@ import { FIXME, Option } from '../core';

export enum NodeType {
Element,
Attribute,
Text,
CdataSection,
EntityReference,
Entity,
ProcessingInstruction,
Comment,
Document,
DocumentType,
DocumentFragment,
Notation
Element = 1,
Attribute = 2,
Text = 3,
CdataSection = 4,
EntityReference = 5,
Entity = 6,
ProcessingInstruction = 7,
Comment = 8,
Document = 9,
DocumentType = 10,
DocumentFragment = 11,
Notation = 12
}

@@ -35,8 +35,14 @@

parentNode: Option<Node>;
nodeType: NodeType | number;
nodeType: NodeType;
nodeValue: Option<string>;
firstChild: Option<Node>;
lastChild: Option<Node>;
}
export interface DocumentFragment extends Node {
nodeType: NodeType.DocumentFragment;
}
export interface Document extends Node {
nodeType: NodeType.Document;
createElement(tag: string): Element;

@@ -52,11 +58,34 @@ createElementNS(namespace: Namespace, tag: string): Element;

export interface Text extends CharacterData {}
export interface TokenList {
[index: number]: string;
length: number;
export interface Comment extends CharacterData {}
add(s: string): void;
remove(s: string): void;
contains(s: string): boolean;
}
export interface Text extends CharacterData {
nodeType: NodeType.Text;
}
export interface Comment extends CharacterData {
nodeType: NodeType.Comment;
}
export interface Attribute {
name: string;
value: string;
}
export interface Attributes {
[index: number]: Attribute;
length: number;
}
export interface Element extends Node {
nodeType: NodeType.Element;
namespaceURI: Option<string>;
tagName: string;
firstChild: Option<Node>;
lastChild: Option<Node>;
attributes: Attributes;
removeAttribute(name: string): void;

@@ -63,0 +92,0 @@ removeAttributeNS(namespaceURI: string, name: string): void;

{
"name": "@glimmer/interfaces",
"version": "0.25.1",
"version": "0.26.0",
"repository": "https://github.com/glimmerjs/glimmer-vm/tree/master/packages/@glimmer/interfaces",
"dependencies": {
"@glimmer/wire-format": "^0.25.1"
"@glimmer/wire-format": "^0.26.0"
},

@@ -8,0 +8,0 @@ "devDependencies": {

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