@thi.ng/expose 1.2.24 → 1.2.25
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.
- package/CHANGELOG.md +1 -1
- package/README.md +9 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 191 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -48,7 +48,13 @@ string) the function will **always** be enabled. Otherwise (by default),
|
|
|
48
48
|
yarn add @thi.ng/expose
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
ESM import:
|
|
52
|
+
|
|
53
|
+
```ts
|
|
54
|
+
import * as exp from "@thi.ng/expose";
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Browser ESM import:
|
|
52
58
|
|
|
53
59
|
```html
|
|
54
60
|
<script type="module" src="https://cdn.skypack.dev/@thi.ng/expose"></script>
|
|
@@ -59,7 +65,7 @@ ES module import:
|
|
|
59
65
|
For Node.js REPL:
|
|
60
66
|
|
|
61
67
|
```js
|
|
62
|
-
const
|
|
68
|
+
const exp = await import("@thi.ng/expose");
|
|
63
69
|
```
|
|
64
70
|
|
|
65
71
|
Package sizes (brotli'd, pre-treeshake): ESM: 205 bytes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/expose",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.25",
|
|
4
4
|
"description": "Conditional global variable exposition",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"thi.ng": {},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
|
|
73
73
|
}
|