node-modules-tools 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
- export { d as CLUSTER_DEP_DEV, e as CLUSTER_DEP_OPTIONAL, C as CLUSTER_DEP_PROD, c as PackageModuleTypes } from './shared/node-modules-tools.BxS2oEP2.mjs';
1
+ export { d as CLUSTER_DEP_DEV, e as CLUSTER_DEP_OPTIONAL, C as CLUSTER_DEP_PROD, c as PackageModuleTypes } from './shared/node-modules-tools.BYxjc8aw.mjs';
2
2
  import 'pkg-types';
3
3
  import 'publint';
4
+ import '~~/shared/types';
@@ -1,3 +1,4 @@
1
- export { d as CLUSTER_DEP_DEV, e as CLUSTER_DEP_OPTIONAL, C as CLUSTER_DEP_PROD, c as PackageModuleTypes } from './shared/node-modules-tools.BxS2oEP2.js';
1
+ export { d as CLUSTER_DEP_DEV, e as CLUSTER_DEP_OPTIONAL, C as CLUSTER_DEP_PROD, c as PackageModuleTypes } from './shared/node-modules-tools.BYxjc8aw.js';
2
2
  import 'pkg-types';
3
3
  import 'publint';
4
+ import '~~/shared/types';
package/dist/index.d.mts CHANGED
@@ -1,9 +1,10 @@
1
1
  import { AgentName } from 'package-manager-detector';
2
- import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode } from './shared/node-modules-tools.BxS2oEP2.mjs';
3
- export { d as CLUSTER_DEP_DEV, e as CLUSTER_DEP_OPTIONAL, C as CLUSTER_DEP_PROD, F as FileCategory, h as PackageInstallSizeInfo, g as PackageModuleType, f as PackageModuleTypeSimple, c as PackageModuleTypes } from './shared/node-modules-tools.BxS2oEP2.mjs';
2
+ import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode } from './shared/node-modules-tools.BYxjc8aw.mjs';
3
+ export { d as CLUSTER_DEP_DEV, e as CLUSTER_DEP_OPTIONAL, C as CLUSTER_DEP_PROD, F as FileCategory, h as PackageInstallSizeInfo, g as PackageModuleType, f as PackageModuleTypeSimple, c as PackageModuleTypes } from './shared/node-modules-tools.BYxjc8aw.mjs';
4
4
  export { PackageNodeLike, constructPackageFilter, constructPackageFilters } from './utils.mjs';
5
5
  import 'pkg-types';
6
6
  import 'publint';
7
+ import '~~/shared/types';
7
8
 
8
9
  interface BaseOptions {
9
10
  /**
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  import { AgentName } from 'package-manager-detector';
2
- import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode } from './shared/node-modules-tools.BxS2oEP2.js';
3
- export { d as CLUSTER_DEP_DEV, e as CLUSTER_DEP_OPTIONAL, C as CLUSTER_DEP_PROD, F as FileCategory, h as PackageInstallSizeInfo, g as PackageModuleType, f as PackageModuleTypeSimple, c as PackageModuleTypes } from './shared/node-modules-tools.BxS2oEP2.js';
2
+ import { P as PackageNodeRaw, a as PackageNodeBase, b as PackageNode } from './shared/node-modules-tools.BYxjc8aw.js';
3
+ export { d as CLUSTER_DEP_DEV, e as CLUSTER_DEP_OPTIONAL, C as CLUSTER_DEP_PROD, F as FileCategory, h as PackageInstallSizeInfo, g as PackageModuleType, f as PackageModuleTypeSimple, c as PackageModuleTypes } from './shared/node-modules-tools.BYxjc8aw.js';
4
4
  export { PackageNodeLike, constructPackageFilter, constructPackageFilters } from './utils.js';
5
5
  import 'pkg-types';
6
6
  import 'publint';
7
+ import '~~/shared/types';
7
8
 
8
9
  interface BaseOptions {
9
10
  /**
@@ -1,5 +1,6 @@
1
1
  import { PackageJsonExports } from 'pkg-types';
2
2
  import { Message } from 'publint';
3
+ import { NpmMeta, NpmMetaLatest } from '~~/shared/types';
3
4
 
4
5
  interface PackageInstallSizeInfo {
5
6
  bytes: number;
@@ -62,7 +63,8 @@ interface PackageNode extends PackageNodeBase {
62
63
  homepage?: string;
63
64
  engines?: Record<string, string>;
64
65
  installSize?: PackageInstallSizeInfo;
65
- publishTime?: string;
66
+ npmMeta?: NpmMeta;
67
+ npmMetaLatest?: NpmMetaLatest;
66
68
  /**
67
69
  * Result for publint, null for invalid, undefined for not checked yet, empty array for all good
68
70
  */
@@ -1,5 +1,6 @@
1
1
  import { PackageJsonExports } from 'pkg-types';
2
2
  import { Message } from 'publint';
3
+ import { NpmMeta, NpmMetaLatest } from '~~/shared/types';
3
4
 
4
5
  interface PackageInstallSizeInfo {
5
6
  bytes: number;
@@ -62,7 +63,8 @@ interface PackageNode extends PackageNodeBase {
62
63
  homepage?: string;
63
64
  engines?: Record<string, string>;
64
65
  installSize?: PackageInstallSizeInfo;
65
- publishTime?: string;
66
+ npmMeta?: NpmMeta;
67
+ npmMetaLatest?: NpmMetaLatest;
66
68
  /**
67
69
  * Result for publint, null for invalid, undefined for not checked yet, empty array for all good
68
70
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "node-modules-tools",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.4.0",
5
5
  "description": "Tools for inspecting node_modules",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",