Huge News!Announcing our $40M Series B led by Abstract Ventures.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.24 to 0.1.25

lib/__tests__/__snapshots__/func.test.ts.snap

12

bin/index.js

@@ -499,2 +499,12 @@ "use strict";

}
function writeUnionReference(d) {
if (typeof d !== "string" && d.kind === "function-type") {
print('(');
writeReference(d);
print(')');
}
else {
writeReference(d);
}
}
function writeReference(d) {

@@ -540,3 +550,3 @@ if (typeof d === 'string') {

case "union":
writeDelimited(e.members, ' | ', writeReference);
writeDelimited(e.members, ' | ', writeUnionReference);
break;

@@ -543,0 +553,0 @@ case "typeof":

@@ -752,2 +752,12 @@ export interface DeclarationBase {

function writeUnionReference(d: Type) {
if (typeof d !== "string" && d.kind === "function-type") {
print('(')
writeReference(d)
print(')')
} else {
writeReference(d)
}
}
function writeReference(d: Type) {

@@ -793,3 +803,3 @@ if (typeof d === 'string') {

case "union":
writeDelimited(e.members, ' | ', writeReference);
writeDelimited(e.members, ' | ', writeUnionReference);
break;

@@ -796,0 +806,0 @@

28

package.json
{
"name": "dts-dom",
"version": "0.1.24",
"version": "0.1.25",
"homepage": "https://github.com/RyanCavanaugh/dts-dom",

@@ -11,3 +11,3 @@ "description": "DOM for TypeScript Declaration Files",

"prepublish": "npm run build",
"test": "mocha --compilers=ts:ts-node/register --no-timeouts test/**/test.*.ts"
"test": "jest --coverage"
},

@@ -21,10 +21,22 @@ "author": "Ryan Cavanaugh",

"devDependencies": {
"@types/chai": "^4.0.7",
"@types/mocha": "^2.2.44",
"@types/node": "^8.0.54",
"chai": "^4.1.2",
"mocha": "^4.0.1",
"ts-node": "^3.3.0",
"@types/jest": "^22.0.1",
"jest": "^22.1.3",
"ts-jest": "^22.0.1",
"typescript": "^2.6.2"
},
"jest": {
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.ts$",
"moduleFileExtensions": [
"ts",
"js",
"json"
],
"mapCoverage": true,
"collectCoverageFrom": [
"lib/**/*.ts"
]
}
}

@@ -57,1 +57,2 @@ [![npm version](https://badge.fury.io/js/dts-dom.svg)](https://badge.fury.io/js/dts-dom)

* [Jeremy Danyow](https://www.github.com/jdanyow)
* [Hendrik Liebau](https://github.com/KingHenne)

@@ -7,5 +7,3 @@ {

"types": [
"@types/node",
"@types/mocha",
"@types/chai"
"@types/node"
],

@@ -12,0 +10,0 @@

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