@stealthmark/express 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.
Files changed (2) hide show
  1. package/README.md +2 -16
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -6,27 +6,13 @@ Express and Fastify middleware that detects AI agents that identify themselves,
6
6
 
7
7
  Part of the [StealthMark](https://stealthmark.io) SDK.
8
8
 
9
- > **Status:** v0.1.0, not published to npm yet. The `npm install` and `npx` commands below will work once it is published; until then build from source as described in the [repository README](https://github.com/Gastonchevarria/stealthmark-sdk#status).
10
-
11
- ## Installation from source
12
-
13
- Until the first npm release, build the repository and install the tarballs (`@stealthmark/express` depends on `@stealthmark/core`):
14
-
15
- ```bash
16
- # in a clone of the repository
17
- npm install && npm run build
18
- npm pack -w @stealthmark/core -w @stealthmark/express
19
- # in your project
20
- npm install /path/to/stealthmark-core-0.1.0.tgz /path/to/stealthmark-express-0.1.0.tgz
21
- ```
22
-
23
- ## Installation (after the first npm release)
9
+ ## Installation
24
10
 
25
11
  ```bash
26
12
  npm install @stealthmark/express @stealthmark/core
27
13
  ```
28
14
 
29
- Requires Node.js 20 or newer.
15
+ Requires Node.js 20 or newer. The package is ESM; CommonJS projects can also `require()` it on Node.js 20.19+ or 22.12+.
30
16
 
31
17
  ## Express Quickstart
32
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stealthmark/express",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Express and Fastify middleware that detects self-identified AI agents, serves an agent manifest and meters agent traffic",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -10,7 +10,8 @@
10
10
  "exports": {
11
11
  ".": {
12
12
  "types": "./dist/index.d.ts",
13
- "import": "./dist/index.js"
13
+ "import": "./dist/index.js",
14
+ "default": "./dist/index.js"
14
15
  }
15
16
  },
16
17
  "files": [