load-plugin 4.0.0 → 4.0.1

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.
Files changed (3) hide show
  1. package/index.js +0 -2
  2. package/package.json +1 -1
  3. package/readme.md +1 -1
package/index.js CHANGED
@@ -78,7 +78,6 @@ if (electron && nvm && !fs.existsSync(globalDir)) {
78
78
  export async function loadPlugin(name, options = {}) {
79
79
  const {key = 'default', ...rest} = options
80
80
  const fp = await resolvePlugin(name, rest)
81
- console.log('resolved:', [name, fp, pathToFileURL(fp).href])
82
81
  /** @type {Object.<string, unknown>} */
83
82
  // Bug with coverage on Node@12.
84
83
  /* c8 ignore next 3 */
@@ -174,7 +173,6 @@ export async function resolvePlugin(name, options = {}) {
174
173
  */
175
174
  async function attempt(base, name) {
176
175
  try {
177
- console.log('try:', [name, base, pathToFileURL(base).href + '/'])
178
176
  // `import-meta-resolve` resolves from files, whereas `load-plugin` works
179
177
  // on folders, which is why we add a `/` at the end.
180
178
  return fileURLToPath(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "load-plugin",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Load a submodule, plugin, or file",
5
5
  "license": "MIT",
6
6
  "keywords": [
package/readme.md CHANGED
@@ -97,7 +97,7 @@ path that exists.
97
97
  The promise rejects if `require`ing an existing path fails, or if no existing
98
98
  path exists.
99
99
 
100
- ### `loadPlugin.resolve(name[, options])`
100
+ ### `resolvePlugin(name[, options])`
101
101
 
102
102
  Search for `name`.
103
103
  Accepts the same parameters as [`loadPlugin`][load-plugin] (except `key`) but