Socket
Socket
Sign inDemoInstall

@databases/shared-print-types

Package Overview
Dependencies
4
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.0-canary-1991 to 1.2.0-canary-1994

21

lib/PrintContext.js

@@ -84,8 +84,11 @@ "use strict";

});
this._declarations.push(() => [
...declarationLines,
this.getDefaultName() === identifierName
? `export default ${identifierName};`
: `export ${mode === 'type' ? 'type ' : ''}{${identifierName}}`,
]);
this._declarations.push({
name: identifierName,
src: () => [
...declarationLines,
this.getDefaultName() === identifierName
? `export default ${identifierName};`
: `export ${mode === 'type' ? 'type ' : ''}{${identifierName}}`,
],
});
}

@@ -124,6 +127,9 @@ return {

: []),
...this._declarations.map((v) => v().join('\n')),
...this._declarations
.sort((a, b) => (a.name < b.name ? -1 : 1))
.map((v) => v.src().join('\n')),
...(this._reExports.type.length
? [
`export type {\n${this._reExports.type
.sort((a, b) => (a.dest < b.dest ? -1 : 1))
.map((t) => t.source === t.dest

@@ -138,2 +144,3 @@ ? ` ${t.source},`

`export {\n${this._reExports.value
.sort((a, b) => (a.dest < b.dest ? -1 : 1))
.map((t) => t.source === t.dest

@@ -140,0 +147,0 @@ ? ` ${t.source},`

{
"name": "@databases/shared-print-types",
"version": "1.2.0-canary-1991",
"version": "1.2.0-canary-1994",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc