@lapwy/js 0.1.0 → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 lapwy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lapwy/js
2
2
 
3
- The lapwy tracker for any website or single-page app.
3
+ The [lapwy](https://lapwy.com) tracker for any website or single-page app.
4
4
 
5
5
  ```sh
6
6
  npm install @lapwy/js
@@ -18,3 +18,9 @@ Route changes are followed on their own. `init` is safe to call more than once a
18
18
  Also exported: `page`, `consent` and `notFound`.
19
19
 
20
20
  With React, Next.js or Vue, use [`@lapwy/react`](https://www.npmjs.com/package/@lapwy/react), [`@lapwy/next`](https://www.npmjs.com/package/@lapwy/next) or [`@lapwy/vue`](https://www.npmjs.com/package/@lapwy/vue) instead of calling `init` yourself.
21
+
22
+ ## Links
23
+
24
+ - [lapwy.com](https://lapwy.com): add your site and get its key (`lw_…`) under Settings → Install
25
+ - [SDK reference](https://lapwy.com/docs): every option, cookie modes, page grouping
26
+ - [llms.txt](https://lapwy.com/llms.txt): the same reference for AI coding agents
package/dist/core.d.cts CHANGED
@@ -50,6 +50,6 @@ export type Tracker = {
50
50
  */
51
51
  notFound: (status?: number) => void;
52
52
  };
53
- export declare const DEFAULT_ENDPOINT = "https://in.lapwy.com/e";
53
+ export declare const DEFAULT_ENDPOINT = "https://i.lapwy.com/e";
54
54
  /** Starts tracking this page. Call it once, in the browser. On a server it does nothing. */
55
55
  export declare function start(options: Options): Tracker;
package/dist/core.d.ts CHANGED
@@ -50,6 +50,6 @@ export type Tracker = {
50
50
  */
51
51
  notFound: (status?: number) => void;
52
52
  };
53
- export declare const DEFAULT_ENDPOINT = "https://in.lapwy.com/e";
53
+ export declare const DEFAULT_ENDPOINT = "https://i.lapwy.com/e";
54
54
  /** Starts tracking this page. Call it once, in the browser. On a server it does nothing. */
55
55
  export declare function start(options: Options): Tracker;
package/dist/index.cjs CHANGED
@@ -31,7 +31,7 @@ __export(src_exports, {
31
31
  module.exports = __toCommonJS(src_exports);
32
32
 
33
33
  // src/core.ts
34
- var DEFAULT_ENDPOINT = "https://in.lapwy.com/e";
34
+ var DEFAULT_ENDPOINT = "https://i.lapwy.com/e";
35
35
  var noop = { track() {
36
36
  }, page() {
37
37
  }, consent() {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/core.ts
2
- var DEFAULT_ENDPOINT = "https://in.lapwy.com/e";
2
+ var DEFAULT_ENDPOINT = "https://i.lapwy.com/e";
3
3
  var noop = { track() {
4
4
  }, page() {
5
5
  }, consent() {
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@lapwy/js",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "The lapwy tracker for any website or single-page app: init, track, page, consent, notFound.",
5
- "license": "UNLICENSED",
5
+ "homepage": "https://lapwy.com",
6
+ "license": "MIT",
6
7
  "type": "module",
7
8
  "sideEffects": false,
8
9
  "files": [