Skip to content

Commit 9a74783

Browse files
committed
Update d3-require.
1 parent 5fb67b6 commit 9a74783

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ tex.options({displayMode: true})`E = mc^2`
712712

713713
<a href="#require" name="require">#</a> <b>require</b>(<i>names…</i>) [<>](https://github.com/d3/d3-require/blob/master/index.js "Source")
714714

715-
Returns a promise of the [asynchronous module definition](https://github.com/amdjs/amdjs-api/blob/master/AMD.md) (AMD) with the specified *names*, loaded from [unpkg](https://unpkg.com/). Each module *name* can be a package (or scoped package) name optionally followed by the at sign (`@`) and a semver range. For example, to load [d3-array](https://github.com/d3/d3-array):
715+
Returns a promise of the [asynchronous module definition](https://github.com/amdjs/amdjs-api/blob/master/AMD.md) (AMD) with the specified *names*, loaded from [jsDelivr](https://jsdelivr.com/). Each module *name* can be a package (or scoped package) name optionally followed by the at sign (`@`) and a semver range. For example, to load [d3-array](https://github.com/d3/d3-array):
716716

717717
```js
718718
d3 = require("d3-array")
@@ -737,7 +737,7 @@ See [d3-require](https://github.com/d3/d3-require) for more information.
737737
Returns a promise to the resolved URL to require the module with the specified *name*. For example:
738738

739739
```js
740-
require.resolve("d3-array") // "https://unpkg.com/d3-array@1.2.1/build/d3-array.js"
740+
require.resolve("d3-array") // "https://cdn.jsdelivr.net/npm/d3-array@2.0.3/dist/d3-array.min.js"
741741
```
742742

743743
<a href="#require_alias" name="require_alias">#</a> require.<b>alias</b>(<i>aliases</i>) [<>](https://github.com/d3/d3-require/blob/master/index.js "Source")

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ cssstyle@^1.1.1:
265265
cssom "0.3.x"
266266

267267
d3-require@^1.2.0:
268-
version "1.2.0"
269-
resolved "https://registry.yarnpkg.com/d3-require/-/d3-require-1.2.0.tgz#a840fc88e4b7f3bc49dac91eb16615c1df20b42a"
268+
version "1.2.1"
269+
resolved "https://registry.yarnpkg.com/d3-require/-/d3-require-1.2.1.tgz#cb486ae94768c19d818a5166b0b589ea00a1dcea"
270270

271271
dashdash@^1.12.0:
272272
version "1.14.1"

0 commit comments

Comments
 (0)