@arcjet/node 1.1.0-rc → 1.2.0
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/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +14 -14
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ArcjetDecision, ArcjetOptions as CoreOptions, Primitive, Product, ExtraProps, CharacteristicProps } from "arcjet";
|
|
1
|
+
import type { ArcjetDecision, ArcjetOptions as CoreOptions, ArcjetRule, Primitive, Product, ExtraProps, CharacteristicProps } from "arcjet";
|
|
2
2
|
export * from "arcjet";
|
|
3
3
|
type Simplify<T> = {
|
|
4
4
|
[KeyType in keyof T]: T[KeyType];
|
|
@@ -164,7 +164,7 @@ export interface ArcjetNode<Props extends PlainObject> {
|
|
|
164
164
|
* @returns
|
|
165
165
|
* Arcjet instance augmented with the given rule.
|
|
166
166
|
*/
|
|
167
|
-
withRule<
|
|
167
|
+
withRule<Rule extends ArcjetRule>(rule: Array<Rule>): ArcjetNode<Props & (Rule extends ArcjetRule<infer P> ? P : {})>;
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
170
|
* Create a new Node.js integration of Arcjet.
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as core from 'arcjet';
|
|
2
2
|
import core__default from 'arcjet';
|
|
3
3
|
export * from 'arcjet';
|
|
4
|
-
import
|
|
4
|
+
import { parseProxy, findIp } from '@arcjet/ip';
|
|
5
5
|
import { ArcjetHeaders } from '@arcjet/headers';
|
|
6
6
|
import { logLevel, isDevelopment, baseUrl, platform } from '@arcjet/env';
|
|
7
7
|
import { Logger } from '@arcjet/logger';
|
|
@@ -56,7 +56,7 @@ function createRemoteClient(options) {
|
|
|
56
56
|
// Transport is the HTTP client that the client uses to make requests.
|
|
57
57
|
const transport = createTransport(url);
|
|
58
58
|
const sdkStack = "NODEJS";
|
|
59
|
-
const sdkVersion = "1.
|
|
59
|
+
const sdkVersion = "1.2.0";
|
|
60
60
|
return createClient({
|
|
61
61
|
transport,
|
|
62
62
|
baseUrl: url,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcjet/node",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Arcjet SDK for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"analyze",
|
|
@@ -49,21 +49,21 @@
|
|
|
49
49
|
"test": "npm run build && npm run lint && npm run test-coverage"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@arcjet/env": "1.
|
|
53
|
-
"@arcjet/headers": "1.
|
|
54
|
-
"@arcjet/ip": "1.
|
|
55
|
-
"@arcjet/logger": "1.
|
|
56
|
-
"@arcjet/protocol": "1.
|
|
57
|
-
"@arcjet/transport": "1.
|
|
58
|
-
"@arcjet/body": "1.
|
|
59
|
-
"arcjet": "1.
|
|
52
|
+
"@arcjet/env": "1.2.0",
|
|
53
|
+
"@arcjet/headers": "1.2.0",
|
|
54
|
+
"@arcjet/ip": "1.2.0",
|
|
55
|
+
"@arcjet/logger": "1.2.0",
|
|
56
|
+
"@arcjet/protocol": "1.2.0",
|
|
57
|
+
"@arcjet/transport": "1.2.0",
|
|
58
|
+
"@arcjet/body": "1.2.0",
|
|
59
|
+
"arcjet": "1.2.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@arcjet/cache": "1.
|
|
63
|
-
"@arcjet/eslint-config": "1.
|
|
64
|
-
"@arcjet/rollup-config": "1.
|
|
65
|
-
"@types/node": "
|
|
66
|
-
"@rollup/wasm-node": "4.57.
|
|
62
|
+
"@arcjet/cache": "1.2.0",
|
|
63
|
+
"@arcjet/eslint-config": "1.2.0",
|
|
64
|
+
"@arcjet/rollup-config": "1.2.0",
|
|
65
|
+
"@types/node": "24.11.0",
|
|
66
|
+
"@rollup/wasm-node": "4.57.1",
|
|
67
67
|
"eslint": "9.39.2",
|
|
68
68
|
"typescript": "5.9.3"
|
|
69
69
|
},
|