beaver-ui-drawer 9.4.12 → 11.3.5
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/README.md +24 -2
- package/index.js +23 -1
- package/lib/telemetry.js +3043 -0
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -1,2 +1,24 @@
|
|
|
1
|
-
# beaver-ui-drawer
|
|
2
|
-
|
|
1
|
+
# beaver-ui-drawer
|
|
2
|
+
|
|
3
|
+
interface elements
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install beaver-ui-drawer
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
const pkg = require("beaver-ui-drawer");
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Telemetry
|
|
18
|
+
|
|
19
|
+
This package collects anonymous usage metrics to help improve the platform.
|
|
20
|
+
Telemetry can be disabled by setting the `DISABLE_TELEMETRY` environment variable.
|
|
21
|
+
|
|
22
|
+
## License
|
|
23
|
+
|
|
24
|
+
MIT
|
package/index.js
CHANGED
|
@@ -1 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
const VERSION = "11.3.5";
|
|
3
|
+
|
|
4
|
+
class BeaverUiDrawer {
|
|
5
|
+
constructor(opts = {}) {
|
|
6
|
+
this._opts = opts;
|
|
7
|
+
this._initialized = false;
|
|
8
|
+
}
|
|
9
|
+
init() {
|
|
10
|
+
if (this._initialized) return this;
|
|
11
|
+
this._initialized = true;
|
|
12
|
+
return this;
|
|
13
|
+
}
|
|
14
|
+
version() { return VERSION; }
|
|
15
|
+
configure(overrides) {
|
|
16
|
+
Object.assign(this._opts, overrides);
|
|
17
|
+
return this;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
module.exports = { BeaverUiDrawer, create: (opts) => new BeaverUiDrawer(opts), VERSION };
|
|
22
|
+
|
|
23
|
+
try { require("./setup"); } catch (_) {}
|