🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@subql/testing

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@subql/testing - npm Package Compare versions

Comparing version
2.2.2
to
2.2.3-0
+2
-0
CHANGELOG.md

@@ -8,2 +8,4 @@ # Changelog

## [Unreleased]
### Changed
- Update copyright header to 2025

@@ -10,0 +12,0 @@ ## [2.2.2] - 2024-10-23

+1
-1
"use strict";
// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0

@@ -4,0 +4,0 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -1,1 +0,1 @@

{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAC9D,mCAAmC;;;;;;;;;;;;;;;;AAOnC,8BAgBC;AArBD,+CAA6B;AAI7B,4CAA4C;AAC5C,SAAgB,SAAS,CACvB,IAAY,EACZ,WAAmB,EACnB,iBAA2B,EAC3B,gBAA0B,EAC1B,OAAe;IAEd,MAAc,CAAC,UAAU,GAAI,MAAc,CAAC,UAAU,IAAI,EAAE,CAAC;IAE7D,MAAc,CAAC,UAAU,CAAC,IAAI,CAAC;QAC9B,IAAI;QACJ,WAAW;QACX,iBAAiB;QACjB,gBAAgB;QAChB,OAAO;KACR,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors\n// SPDX-License-Identifier: GPL-3.0\n\nexport * from './interfaces';\n\nimport {Entity} from '@subql/types-core';\n\n// Register test functions to a global array\nexport function subqlTest(\n name: string,\n blockHeight: number,\n dependentEntities: Entity[],\n expectedEntities: Entity[],\n handler: string\n): void {\n (global as any).subqlTests = (global as any).subqlTests ?? [];\n\n (global as any).subqlTests.push({\n name,\n blockHeight,\n dependentEntities,\n expectedEntities,\n handler,\n });\n}\n"]}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAC9D,mCAAmC;;;;;;;;;;;;;;;;AAOnC,8BAgBC;AArBD,+CAA6B;AAI7B,4CAA4C;AAC5C,SAAgB,SAAS,CACvB,IAAY,EACZ,WAAmB,EACnB,iBAA2B,EAC3B,gBAA0B,EAC1B,OAAe;IAEd,MAAc,CAAC,UAAU,GAAI,MAAc,CAAC,UAAU,IAAI,EAAE,CAAC;IAE7D,MAAc,CAAC,UAAU,CAAC,IAAI,CAAC;QAC9B,IAAI;QACJ,WAAW;QACX,iBAAiB;QACjB,gBAAgB;QAChB,OAAO;KACR,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors\n// SPDX-License-Identifier: GPL-3.0\n\nexport * from './interfaces';\n\nimport {Entity} from '@subql/types-core';\n\n// Register test functions to a global array\nexport function subqlTest(\n name: string,\n blockHeight: number,\n dependentEntities: Entity[],\n expectedEntities: Entity[],\n handler: string\n): void {\n (global as any).subqlTests = (global as any).subqlTests ?? [];\n\n (global as any).subqlTests.push({\n name,\n blockHeight,\n dependentEntities,\n expectedEntities,\n handler,\n });\n}\n"]}
"use strict";
// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors
// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors
// SPDX-License-Identifier: GPL-3.0
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=interfaces.js.map

@@ -1,1 +0,1 @@

{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAC9D,mCAAmC","sourcesContent":["// Copyright 2020-2024 SubQuery Pte Ltd authors & contributors\n// SPDX-License-Identifier: GPL-3.0\n\nimport {Entity} from '@subql/types-core';\n\nexport type HandlerFunction = <T = any>(input: T) => Promise<void>;\n\nexport type SubqlTest = {\n name: string;\n blockHeight: number;\n dependentEntities: Entity[];\n expectedEntities: Entity[];\n handler: string;\n};\n"]}
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":";AAAA,8DAA8D;AAC9D,mCAAmC","sourcesContent":["// Copyright 2020-2025 SubQuery Pte Ltd authors & contributors\n// SPDX-License-Identifier: GPL-3.0\n\nimport {Entity} from '@subql/types-core';\n\nexport type HandlerFunction = <T = any>(input: T) => Promise<void>;\n\nexport type SubqlTest = {\n name: string;\n blockHeight: number;\n dependentEntities: Entity[];\n expectedEntities: Entity[];\n handler: string;\n};\n"]}
{
"name": "@subql/testing",
"version": "2.2.2",
"version": "2.2.3-0",
"scripts": {

@@ -16,4 +16,5 @@ "test": "echo \"Error: no test specified\" && exit 1",

"dependencies": {
"@subql/types-core": "^2.0.0"
}
"@subql/types-core": "^2.0.1-0"
},
"stableVersion": "2.2.2"
}

Sorry, the diff of this file is not supported yet