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

dts-dom

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dts-dom - npm Package Compare versions

Comparing version 0.1.15 to 0.1.16

2

bin/index.d.ts

@@ -202,3 +202,3 @@ export interface DeclarationBase {

export declare function isIdentifier(s: string): boolean;
export declare const enum ContextFlags {
export declare enum ContextFlags {
None = 0,

@@ -205,0 +205,0 @@ Module = 1,

@@ -225,2 +225,8 @@ "use strict";

}
var ContextFlags;
(function (ContextFlags) {
ContextFlags[ContextFlags["None"] = 0] = "None";
ContextFlags[ContextFlags["Module"] = 1] = "Module";
ContextFlags[ContextFlags["InAmbientNamespace"] = 2] = "InAmbientNamespace";
})(ContextFlags = exports.ContextFlags || (exports.ContextFlags = {}));
function never(x, err) {

@@ -231,3 +237,3 @@ throw new Error(err);

function emit(rootDecl, rootFlags) {
if (rootFlags === void 0) { rootFlags = 0 /* None */; }
if (rootFlags === void 0) { rootFlags = ContextFlags.None; }
var output = "";

@@ -240,3 +246,3 @@ var indentLevel = 0;

function getContextFlags() {
return contextStack.reduce(function (a, b) { return a | b; }, 0 /* None */);
return contextStack.reduce(function (a, b) { return a | b; }, ContextFlags.None);
}

@@ -282,3 +288,3 @@ function tab() {

function startWithDeclareOrExport(s, flags) {
if (getContextFlags() & 2 /* InAmbientNamespace */) {
if (getContextFlags() & ContextFlags.InAmbientNamespace) {
// Already in an all-export context

@@ -587,3 +593,3 @@ start(s);

startWithDeclareOrExport("namespace " + ns.name + " {", ns.flags);
contextStack.push(2 /* InAmbientNamespace */);
contextStack.push(ContextFlags.InAmbientNamespace);
newline();

@@ -622,3 +628,3 @@ indentLevel++;

startWithDeclareOrExport("module '" + m.name + "' {", m.flags);
contextStack.push(1 /* Module */);
contextStack.push(ContextFlags.Module);
newline();

@@ -625,0 +631,0 @@ indentLevel++;

@@ -420,3 +420,3 @@ export interface DeclarationBase {

export const enum ContextFlags {
export enum ContextFlags {
None = 0,

@@ -423,0 +423,0 @@ Module = 1 << 0,

{
"name": "dts-dom",
"version": "0.1.15",
"version": "0.1.16",
"homepage": "https://github.com/RyanCavanaugh/dts-dom",

@@ -5,0 +5,0 @@ "description": "DOM for TypeScript Declaration Files",

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