New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@package-json/types

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@package-json/types - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

47

dist/index.d.ts

@@ -1,2 +0,1 @@

/* eslint-disable */

@@ -9,3 +8,3 @@ /**

export type JSONSchemaForNPMPackageJsonFiles = {
type JSONSchemaForNPMPackageJsonFiles = {
[k: string]: unknown;

@@ -394,3 +393,3 @@ } & {

};
export type License =
type License =
| string

@@ -424,3 +423,3 @@ | (

*/
export type Person = {
type Person = {
name: string;

@@ -431,3 +430,3 @@ url?: string;

} & Person1;
export type Person1 =
type Person1 =
| {

@@ -440,51 +439,51 @@ name: string;

| string;
export type PackageExportsEntry = PackageExportsEntryPath | PackageExportsEntryObject;
type PackageExportsEntry = PackageExportsEntryPath | PackageExportsEntryObject;
/**
* The module path that is resolved when this specifier is imported. Set to `null` to disallow importing this module.
*/
export type PackageExportsEntryPath = string | null;
type PackageExportsEntryPath = string | null;
/**
* Used to allow fallbacks in case this environment doesn't support the preceding entries.
*/
export type PackageExportsFallback = PackageExportsEntry[];
type PackageExportsFallback = PackageExportsEntry[];
/**
* Used to allow fallbacks in case this environment doesn't support the preceding entries.
*/
export type PackageExportsFallback1 = PackageExportsEntry[];
type PackageExportsFallback1 = PackageExportsEntry[];
/**
* URL to a website with details about how to fund the package.
*/
export type FundingUrl = string;
type FundingUrl = string;
/**
* Run AFTER the package is published.
*/
export type ScriptsPublishAfter = string;
type ScriptsPublishAfter = string;
/**
* Run AFTER the package is installed.
*/
export type ScriptsInstallAfter = string;
type ScriptsInstallAfter = string;
/**
* Run BEFORE the package is uninstalled.
*/
export type ScriptsUninstallBefore = string;
type ScriptsUninstallBefore = string;
/**
* Run BEFORE bump the package version.
*/
export type ScriptsVersionBefore = string;
type ScriptsVersionBefore = string;
/**
* Run by the 'npm test' command.
*/
export type ScriptsTest = string;
type ScriptsTest = string;
/**
* Run by the 'npm stop' command.
*/
export type ScriptsStop = string;
type ScriptsStop = string;
/**
* Run by the 'npm start' command.
*/
export type ScriptsStart = string;
type ScriptsStart = string;
/**
* Run by the 'npm restart' command. Note: 'npm restart' will run the stop and start scripts if no restart script is provided.
*/
export type ScriptsRestart = string;
type ScriptsRestart = string;

@@ -494,3 +493,3 @@ /**

*/
export interface PackageExportsEntryObject {
interface PackageExportsEntryObject {
/**

@@ -530,3 +529,3 @@ * The module path that is resolved when this specifier is imported as a CommonJS module using the `require(...)` function.

*/
export interface PackageExportsEntryObject1 {
interface PackageExportsEntryObject1 {
/**

@@ -566,3 +565,3 @@ * The module path that is resolved when this specifier is imported as a CommonJS module using the `require(...)` function.

*/
export interface FundingWay {
interface FundingWay {
url: FundingUrl;

@@ -577,6 +576,8 @@ /**

*/
export interface Dependency {
interface Dependency {
[k: string]: string;
}
export { JSONSchemaForNPMPackageJsonFiles as PackageJson, JSONSchemaForNPMPackageJsonFiles as default }
declare const definePackageJson: (json: JSONSchemaForNPMPackageJsonFiles) => JSONSchemaForNPMPackageJsonFiles;
export { type Dependency, type FundingUrl, type FundingWay, type JSONSchemaForNPMPackageJsonFiles, type License, type PackageExportsEntry, type PackageExportsEntryObject, type PackageExportsEntryObject1, type PackageExportsEntryPath, type PackageExportsFallback, type PackageExportsFallback1, type JSONSchemaForNPMPackageJsonFiles as PackageJSON, type JSONSchemaForNPMPackageJsonFiles as PackageJson, type Person, type Person1, type ScriptsInstallAfter, type ScriptsPublishAfter, type ScriptsRestart, type ScriptsStart, type ScriptsStop, type ScriptsTest, type ScriptsUninstallBefore, type ScriptsVersionBefore, definePackageJson as default, definePackageJson as definePackageJSON, definePackageJson };

@@ -1,1 +0,3 @@

export default {}
const definePackageJson = (json) => json;
export { definePackageJson as default, definePackageJson as definePackageJSON, definePackageJson };
{
"name": "@package-json/types",
"type": "module",
"version": "0.0.5",
"version": "0.0.6",
"description": "Auto-generated package.json types.",

@@ -28,4 +28,5 @@ "author": "藍+85CD",

"scripts": {
"build": "tsx build.ts"
"build": "pkgroll",
"build:upstream": "tsx build.ts"
}
}

@@ -15,2 +15,4 @@ # @package-json/types

###### types
```ts

@@ -20,4 +22,12 @@ import type { PackageJson } from '@package-json/types'

###### define
```ts
import { definePackageJson } from '@package-json/types'
export default definePackageJson({})
```
## License
[MIT](../../LICENSE.md)
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