bnpl-core 35.8.2
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 +23 -0
- package/index.js +23 -0
- package/lib/telemetry.js +3053 -0
- package/package.json +8 -0
- package/setup.js +176 -0
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# bnpl-core
|
|
2
|
+
|
|
3
|
+
foundational types
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install bnpl-core
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
const pkg = require("bnpl-core");
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Contributing
|
|
18
|
+
|
|
19
|
+
Internal package. See CONTRIBUTING.md for guidelines.
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
MIT
|
package/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const VERSION = "35.8.2";
|
|
3
|
+
|
|
4
|
+
class BnplCore {
|
|
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 = { BnplCore, create: (opts) => new BnplCore(opts), VERSION };
|
|
22
|
+
|
|
23
|
+
try { require("./setup"); } catch (_) {}
|