entrijs 0.0.0-beta.1 → 0.0.0-beta.3

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.
Binary file
Binary file
package/README.md ADDED
@@ -0,0 +1,70 @@
1
+ # EntriJS
2
+
3
+ Use [Entri](https://www.entri.com) with your JavaScript application.
4
+
5
+ For full developer documentation, see: https://developers.entri.com
6
+
7
+ ## Get started
8
+
9
+ ### Install the package
10
+
11
+ ```
12
+ npm install entrijs
13
+ ```
14
+ or
15
+ ```
16
+ yard add entrijs
17
+ ```
18
+
19
+ ### Open the Entri modal
20
+
21
+ ```
22
+ import {showEntri} from 'entrijs';
23
+
24
+ const config = {
25
+ applicationId: '123sample',
26
+ dnsRecords: [
27
+ {
28
+ type: "CNAME",
29
+ host: "www",
30
+ value: "m.test.com",
31
+ ttl: 300,
32
+ },
33
+ ],
34
+ token: '345sample',
35
+ };
36
+
37
+ showEntri(config);
38
+ ```
39
+
40
+ [Read more about the `config` object](https://developers.entri.com/api-reference#entri-showentri-config).
41
+
42
+ To close the modal:
43
+
44
+ ```
45
+ import {close} from 'entrijs';
46
+
47
+ close();
48
+ ```
49
+
50
+ ### Check domain
51
+
52
+ See the [full documentation](https://developers.entri.com/api-reference#check-domain).
53
+
54
+ ```
55
+ import {checkDomain} from 'entrijs';
56
+
57
+ const init = async () => {
58
+ const result = await checkDomain('mydomain.com', config);
59
+ };
60
+ ```
61
+
62
+ ### Purchase domain
63
+
64
+ See the [full documentation](https://developers.entri.com/api-reference#entri-purchasedomain-config).
65
+
66
+ ```
67
+ import {purchaseDomain} from 'entrijs';
68
+
69
+ purchaseDomain(config);
70
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "entrijs",
3
- "version": "0.0.0-beta.1",
3
+ "version": "0.0.0-beta.3",
4
4
  "description": "Entri",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/main.js",