@usermaven/sdk-js 1.0.0 → 1.0.4
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/LICENSE +23 -0
- package/README.md +12 -1
- package/dist/npm/usermaven.cjs.js +1534 -4
- package/dist/npm/usermaven.d.ts +41 -6
- package/dist/npm/usermaven.es.js +1534 -4
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 UserMaven, Inc.
|
|
4
|
+
|
|
5
|
+
Copyright (c) 2021 Jitsu Labs, Inc
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
in the Software without restriction, including without limitation the rights
|
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
furnished to do so, subject to the following conditions:
|
|
13
|
+
|
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
copies or substantial portions of the Software.
|
|
16
|
+
|
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Usermaven.js is a JavaScript SDK for [Usermaven](https://usermaven.com).
|
|
4
4
|
|
|
5
|
+
## Capabilities
|
|
6
|
+
|
|
7
|
+
- Session Capability via `persistence` and `persistence_name` options.
|
|
8
|
+
|
|
5
9
|
## Maintainers Guide
|
|
6
10
|
|
|
7
11
|
This section is indented only for package maintainers.
|
|
@@ -11,7 +15,7 @@ This section is indented only for package maintainers.
|
|
|
11
15
|
* _**ATTENTION**_: Use `yarn` for everything except publishing
|
|
12
16
|
* To spin off a local development server run `yarn devserver`, then open [http://localhost:8081](http://localhost:8081)
|
|
13
17
|
* The server listens to all changes to src and rebuilds npm and `lib.js` automatically. Open test cases HTML files to see
|
|
14
|
-
|
|
18
|
+
usermaven in action
|
|
15
19
|
* http://localhost:8081/test-case/embed.html - embedded Usermaven
|
|
16
20
|
* http://localhost:8081/test-case/embed-no-init.html - Usermaven without automatic initialization
|
|
17
21
|
* http://localhost:8081/test-case/segment-intercept.html - test segment interception
|
|
@@ -19,6 +23,13 @@ This section is indented only for package maintainers.
|
|
|
19
23
|
* `yarn build` builds both npm package and `lib.js` browser bundle
|
|
20
24
|
* `npm publish --public` to publish the package (change version in `package.json` manually). You need to run `npm login` with your personal
|
|
21
25
|
npmjs account beforehand (make sure you have access to Usermaven team)
|
|
26
|
+
* In order to check usermaven sdk locally.
|
|
27
|
+
* `cd dist/npm` --- navigate to npm directory
|
|
28
|
+
* `npm link` --- creates a symbolic link to be accessed globally
|
|
29
|
+
* `cd ../../__tests__/sdk/` --- navigate to sdk test project
|
|
30
|
+
* `npm i` --- install npm dependencies
|
|
31
|
+
* `npm link @usermaven/sdk-js` --- use npm package locally whose symlink is just published
|
|
32
|
+
* `npm start` --- start the application and monitor events
|
|
22
33
|
|
|
23
34
|
### Publishing new version
|
|
24
35
|
|