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

@proload/core

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@proload/core - npm Package Compare versions

Comparing version 0.3.2-next.0 to 0.3.2-next.1

6

CHANGELOG.md
# Changelog
## 0.3.2-next.1
### Patch Changes
- b4553a5: Rollback `resolve` changes
## 0.3.2-next.0

@@ -4,0 +10,0 @@

3

lib/index.d.ts

@@ -98,3 +98,3 @@ export { ProloadError } from './error.cjs';

*/
export function resolve(namespace: string, opts?: ResolveOptions): Promise<string|undefined>;
export async function resolve(namespace: string, opts?: ResolveOptions): Promise<string|undefined>;

@@ -120,2 +120,3 @@ interface Load<T extends Record<any, any> = Record<any, any>> {

export = load;
export default load;
{
"name": "@proload/core",
"version": "0.3.2-next.0",
"version": "0.3.2-next.1",
"description": "Searches for and loads your tool's JavaScript configuration files with full support for CJS, ESM, TypeScript and more.",

@@ -34,3 +34,4 @@ "main": "./lib/cjs/index.cjs",

"deepmerge": "^4.2.2",
"escalade": "^3.1.1"
"escalade": "^3.1.1",
"resolve-pkg": "^2.0.0"
},

@@ -37,0 +38,0 @@ "repository": {

@@ -46,5 +46,5 @@ # `@proload/core`

## `load`
## `resolve`
The `default` export of `@proload/core` is an `async` function to load a configuration file.
`resolve` is an additional named export of `@proload/core`. It is an `async` function that resolves **but does not load** a configuration file.

@@ -55,8 +55,8 @@ - `namespace` is the name of your tool. As an example, `donut` would search for `donut.config.[ext]`.

```ts
load(namespace: string, opts?: LoadOptions);
resolve(namespace: string, opts?: ResolveOptions);
```
## `resolve`
## `load`
`resolve` is an additional named export of `@proload/core`. It is an `async` function that resolves **but does not load** a configuration file.
The `default` export of `@proload/core` is an `async` function to load a configuration file.

@@ -67,7 +67,6 @@ - `namespace` is the name of your tool. As an example, `donut` would search for `donut.config.[ext]`.

```ts
resolve(namespace: string, opts?: ResolveOptions);
load(namespace: string, opts?: LoadOptions);
```
## Options

@@ -74,0 +73,0 @@

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc