@chainlink/external-adapter-framework 2.11.3 → 2.11.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/generator-adapter/generators/app/templates/src/index.ts.ejs +15 -0
- package/generator-adapter/node_modules/.yarn-integrity +2 -2
- package/generator-adapter/node_modules/@types/node/README.md +2 -2
- package/generator-adapter/node_modules/@types/node/package.json +2 -2
- package/generator-adapter/node_modules/@types/node/path.d.ts +1 -1
- package/generator-adapter/node_modules/@types/node/process.d.ts +7 -2
- package/generator-adapter/package.json +1 -1
- package/package.json +5 -5
|
@@ -16,6 +16,21 @@ export const adapter = new Adapter({
|
|
|
16
16
|
<% if (includeComments) { -%>
|
|
17
17
|
// List of supported endpoints
|
|
18
18
|
<% } -%><%= ' ' %> endpoints: [<%= endpointNames %>],
|
|
19
|
+
<% if (Object.values(endpoints).some(endpoint => endpoint.inputTransports.some(({ type }) => type === 'http'))) { -%>
|
|
20
|
+
<% if (includeComments) { -%>
|
|
21
|
+
// Rate limit otherwise we send requests as fast as possible without delay.
|
|
22
|
+
// You should adjust this based on what the data provider can tolerate and
|
|
23
|
+
// how fresh you need your data to be. The rate limit is global for all
|
|
24
|
+
// requests going through transport.dependencies.requester, which includes
|
|
25
|
+
// the requests prepared in HttpTransport.prepareRequests.
|
|
26
|
+
<% } -%><%= ' ' %> rateLimiting: {
|
|
27
|
+
tiers: {
|
|
28
|
+
default: {
|
|
29
|
+
rateLimit1m: 6,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
<% } -%>
|
|
19
34
|
})
|
|
20
35
|
|
|
21
36
|
export const server = (): Promise<ServerInstance | undefined> => expose(adapter)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"flags": [],
|
|
7
7
|
"linkedModules": [],
|
|
8
8
|
"topLevelPatterns": [
|
|
9
|
-
"@types/node@24.10.
|
|
9
|
+
"@types/node@24.10.4",
|
|
10
10
|
"@yeoman/adapter@4.0.1",
|
|
11
11
|
"@yeoman/types@1.9.1",
|
|
12
12
|
"mem-fs@4.1.2",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@types/lodash-es@^4.17.9": "https://registry.yarnpkg.com/@types/lodash-es/-/lodash-es-4.17.12.tgz#65f6d1e5f80539aa7cfbfc962de5def0cf4f341b",
|
|
62
62
|
"@types/lodash@*": "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.17.13.tgz#786e2d67cfd95e32862143abe7463a7f90c300eb",
|
|
63
63
|
"@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-22.10.1.tgz#41ffeee127b8975a05f8c4f83fb89bcb2987d766",
|
|
64
|
-
"@types/node@24.10.
|
|
64
|
+
"@types/node@24.10.4": "https://registry.yarnpkg.com/@types/node/-/node-24.10.4.tgz#9d27c032a1b2c42a4eab8fb65c5856a8b8e098c4",
|
|
65
65
|
"@types/node@>=18": "https://registry.yarnpkg.com/@types/node/-/node-22.10.1.tgz#41ffeee127b8975a05f8c4f83fb89bcb2987d766",
|
|
66
66
|
"@types/normalize-package-data@^2.4.3": "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz#56e2cc26c397c038fab0e3a917a12d5c5909e901",
|
|
67
67
|
"@types/vinyl@^2.0.7": "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-2.0.12.tgz#17642ca9a8ae10f3db018e9f885da4188db4c6e6",
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
This package contains type definitions for node (https://nodejs.org/).
|
|
6
6
|
|
|
7
7
|
# Details
|
|
8
|
-
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
|
|
8
|
+
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v24.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 14 Dec 2025 00:04:32 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "24.10.
|
|
3
|
+
"version": "24.10.4",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -150,6 +150,6 @@
|
|
|
150
150
|
"undici-types": "~7.16.0"
|
|
151
151
|
},
|
|
152
152
|
"peerDependencies": {},
|
|
153
|
-
"typesPublisherContentHash": "
|
|
153
|
+
"typesPublisherContentHash": "3a9013632111e49759d702b082ccfa1cce713feb78de09513919546221062945",
|
|
154
154
|
"typeScriptVersion": "5.2"
|
|
155
155
|
}
|
|
@@ -67,7 +67,7 @@ declare module "path" {
|
|
|
67
67
|
interface PlatformPath {
|
|
68
68
|
/**
|
|
69
69
|
* Normalize a string path, reducing '..' and '.' parts.
|
|
70
|
-
* When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
|
|
70
|
+
* When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. If the path is a zero-length string, '.' is returned, representing the current working directory.
|
|
71
71
|
*
|
|
72
72
|
* @param path string path to normalize.
|
|
73
73
|
* @throws {TypeError} if `path` is not a string.
|
|
@@ -1704,6 +1704,11 @@ declare module "process" {
|
|
|
1704
1704
|
* @param args Additional arguments to pass when invoking the `callback`
|
|
1705
1705
|
*/
|
|
1706
1706
|
nextTick(callback: Function, ...args: any[]): void;
|
|
1707
|
+
/**
|
|
1708
|
+
* The process.noDeprecation property indicates whether the --no-deprecation flag is set on the current Node.js process.
|
|
1709
|
+
* See the documentation for the ['warning' event](https://nodejs.org/docs/latest/api/process.html#event-warning) and the [emitWarning()](https://nodejs.org/docs/latest/api/process.html#processemitwarningwarning-type-code-ctor) method for more information about this flag's behavior.
|
|
1710
|
+
*/
|
|
1711
|
+
noDeprecation?: boolean;
|
|
1707
1712
|
/**
|
|
1708
1713
|
* This API is available through the [--permission](https://nodejs.org/api/cli.html#--permission) flag.
|
|
1709
1714
|
*
|
|
@@ -2000,10 +2005,10 @@ declare module "process" {
|
|
|
2000
2005
|
on(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
2001
2006
|
on(event: "warning", listener: WarningListener): this;
|
|
2002
2007
|
on(event: "message", listener: MessageListener): this;
|
|
2003
|
-
on(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2004
2008
|
on(event: Signals, listener: SignalsListener): this;
|
|
2005
2009
|
on(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
2006
2010
|
on(event: "worker", listener: WorkerListener): this;
|
|
2011
|
+
on(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2007
2012
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2008
2013
|
once(event: "beforeExit", listener: BeforeExitListener): this;
|
|
2009
2014
|
once(event: "disconnect", listener: DisconnectListener): this;
|
|
@@ -2014,10 +2019,10 @@ declare module "process" {
|
|
|
2014
2019
|
once(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
2015
2020
|
once(event: "warning", listener: WarningListener): this;
|
|
2016
2021
|
once(event: "message", listener: MessageListener): this;
|
|
2017
|
-
once(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2018
2022
|
once(event: Signals, listener: SignalsListener): this;
|
|
2019
2023
|
once(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
2020
2024
|
once(event: "worker", listener: WorkerListener): this;
|
|
2025
|
+
once(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2021
2026
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2022
2027
|
prependListener(event: "beforeExit", listener: BeforeExitListener): this;
|
|
2023
2028
|
prependListener(event: "disconnect", listener: DisconnectListener): this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chainlink/external-adapter-framework",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.4",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "git://github.com/smartcontractkit/ea-framework-js.git",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@sinonjs/fake-timers": "15.0.0",
|
|
41
|
-
"@types/node": "24.10.
|
|
41
|
+
"@types/node": "24.10.4",
|
|
42
42
|
"@types/sinonjs__fake-timers": "15.0.1",
|
|
43
43
|
"@types/ws": "8.18.1",
|
|
44
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
45
|
-
"@typescript-eslint/parser": "8.
|
|
44
|
+
"@typescript-eslint/eslint-plugin": "8.49.0",
|
|
45
|
+
"@typescript-eslint/parser": "8.49.0",
|
|
46
46
|
"ava": "6.4.1",
|
|
47
47
|
"axios-mock-adapter": "2.1.0",
|
|
48
48
|
"c8": "10.1.3",
|
|
49
|
-
"eslint": "9.39.
|
|
49
|
+
"eslint": "9.39.2",
|
|
50
50
|
"eslint-config-prettier": "10.1.8",
|
|
51
51
|
"eslint-plugin-tsdoc": "0.5.0",
|
|
52
52
|
"mocksse": "1.0.4",
|