Socket
Socket
Sign inDemoInstall

rollup-plugin-dts

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-dts - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

4

CHANGELOG.md

@@ -0,1 +1,5 @@

### 1.4.3 2020-05-13
- Fixes to work with newest rollup.
### 1.4.2 2020-05-10

@@ -2,0 +6,0 @@

23

dist/rollup-plugin-dts.js

@@ -1065,2 +1065,3 @@ 'use strict';

if (!node.exportClause) {
// export * from './other'
this.pushStatement(withStartEnd({

@@ -1071,16 +1072,16 @@ type: "ExportAllDeclaration",

}
else if (ts.isNamespaceExport(node.exportClause)) {
// export * as name from './other'
this.pushStatement(withStartEnd({
type: "ExportAllDeclaration",
source,
exported: createIdentifier(node.exportClause.name),
}, node));
}
else {
// export { name } from './other'
const specifiers = [];
if (ts.isNamespaceExport(node.exportClause)) {
specifiers.push({
// @ts-ignore: ESTree doesn‘t have this yet
type: "ExportNamespaceSpecifier",
exported: createIdentifier(node.exportClause.name),
});
for (const elem of node.exportClause.elements) {
specifiers.push(this.convertExportSpecifier(elem));
}
else {
for (const elem of node.exportClause.elements) {
specifiers.push(this.convertExportSpecifier(elem));
}
}
this.pushStatement(withStartEnd({

@@ -1087,0 +1088,0 @@ type: "ExportNamedDeclaration",

{
"name": "rollup-plugin-dts",
"version": "1.4.2",
"version": "1.4.3",
"description": "An experiment to generate .d.ts rollup files",

@@ -65,16 +65,16 @@ "keywords": [

"@types/jest": "^25.2.1",
"@types/node": "^13.13.4",
"@types/react": "^16.9.34",
"@types/node": "^14.0.1",
"@types/react": "^16.9.35",
"esm": "^3.2.25",
"fs-extra": "^9.0.0",
"jest": "^25.5.4",
"jest": "^26.0.1",
"prettier": "^2.0.5",
"react": "^16.13.1",
"rollup": "2.7.6",
"ts-jest": "^25.4.0",
"typescript": "3.8.3"
"rollup": "2.10.0",
"ts-jest": "^25.5.1",
"typescript": "3.9.2"
},
"peerDependencies": {
"rollup": "^2.7.6",
"typescript": "^3.8.3"
"rollup": "^2.10.0",
"typescript": "^3.9.2"
},

@@ -81,0 +81,0 @@ "optionalDependencies": {

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