Skip to content

Commit 2212c9f

Browse files
authored
Fixes details in the PnP spec
1 parent b8be0bd commit 2212c9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/docusaurus/docs/advanced/03-pnp/pnp-spec.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ RESOLVE_TO_UNQUALIFIED(specifier, parentURL)
201201

202202
12. Otherwise, if `referenceOrAlias` is an array, then
203203

204-
1. Let `alias` be `referenceOrAlias`
204+
1. Let `alias` be `{ident: referenceOrAlias[0], reference: referenceOrAlias[1]}`
205205

206206
2. Let `dependencyPkg` be [`GET_PACKAGE`](#get_package)`(manifest, alias)`
207207

@@ -261,7 +261,7 @@ The algorithm described here is quite inefficient. You should make sure to prepa
261261

262262
1. If `registryPkg.packageLocation.length` is greater than `bestLength`, then
263263

264-
1. If `relativeUrl` starts with `registryPkg.packageLocation`, then
264+
1. If `relativeUrlWithDot` starts with `registryPkg.packageLocation`, then
265265

266266
1. Set `bestLength` to `registryPkg.packageLocation.length`
267267

0 commit comments

Comments
 (0)