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

publint

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

publint - npm Package Compare versions

Comparing version 0.1.14 to 0.1.15

2

index.d.ts

@@ -62,3 +62,3 @@ export type MessageType = 'suggestion' | 'warning' | 'error'

| BaseMessage<
'EXPORTS_MODULE_SHOULD_PRECEED_IMPORT_REQUIRE',
'EXPORTS_MODULE_SHOULD_PRECEDE_IMPORT_REQUIRE',
{ conditions: string[] }

@@ -65,0 +65,0 @@ >

{
"name": "publint",
"version": "0.1.14",
"version": "0.1.15",
"description": "Lint packaging errors",

@@ -5,0 +5,0 @@ "type": "module",

@@ -496,3 +496,3 @@ import {

// a 'module' export should always preceed 'import' or 'require'
// a 'module' export should always precede 'import' or 'require'
if ('module' in exports) {

@@ -515,3 +515,3 @@ const conditions = []

messages.push({
code: 'EXPORTS_MODULE_SHOULD_PRECEED_IMPORT_REQUIRE',
code: 'EXPORTS_MODULE_SHOULD_PRECEDE_IMPORT_REQUIRE',
args: { conditions },

@@ -518,0 +518,0 @@ path: currentPath.concat('module'),

@@ -59,3 +59,3 @@ import c from 'picocolors'

return `${c.bold(fp(m.path))} should be the first in the object as required by TypeScript.`
case 'EXPORTS_MODULE_SHOULD_PRECEED_IMPORT_REQUIRE': {
case 'EXPORTS_MODULE_SHOULD_PRECEDE_IMPORT_REQUIRE': {
let conditions = `the ${m.args.conditions

@@ -62,0 +62,0 @@ .map((cond) => `"${c.bold(cond)}"`)

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