Skip to content

Commit

Permalink
fix: test and upgrade ts-node, typescript and types
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-prontera committed Aug 11, 2023
1 parent 1e95fa9 commit 8afee54
Show file tree
Hide file tree
Showing 13 changed files with 1,882 additions and 13,508 deletions.
9 changes: 5 additions & 4 deletions modules/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,17 @@
"lint": "eslint `find src -name '*.ts'`"
},
"dependencies": {
"@iabtechlabtcf/core": "1.5.7"
"@iabtechlabtcf/core": "1.5.8"
},
"devDependencies": {
"@types/node": "^17.0.18",
"@types/node": "18.17.4",
"@typescript-eslint/eslint-plugin": "^2.10.0",
"@typescript-eslint/parser": "^5.12.0",
"eslint": "6.8.0",
"source-map-support": "^0.5.12",
"ts-node": "^10.5.0",
"typescript": "^4.5.5"
"ts-node": "10.9.1",
"typedoc": "0.24.8",
"typescript": "4.9.5"
},
"eslintIgnore": [
"lib"
Expand Down
10 changes: 5 additions & 5 deletions modules/cmpapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"@iabtechlabtcf/core": ">=1.0.0"
},
"devDependencies": {
"@iabtechlabtcf/stub": "1.5.7",
"@iabtechlabtcf/testing": "1.5.7",
"@iabtechlabtcf/stub": "1.5.8",
"@iabtechlabtcf/testing": "1.5.8",
"@istanbuljs/nyc-config-typescript": "^0.1.3",
"@types/mocha": "^9.1.0",
"@types/sinon": "10.0.11",
Expand All @@ -56,9 +56,9 @@
"sinon-chai": "3.7.0",
"source-map-support": "^0.5.12",
"terser": "^4.8.1",
"ts-node": "^10.5.0",
"typedoc": "^0.22.11",
"typescript": "4.5.5"
"ts-node": "10.9.1",
"typedoc": "0.24.8",
"typescript": "4.9.5"
},
"eslintIgnore": [
"lib"
Expand Down
4,628 changes: 0 additions & 4,628 deletions modules/cmpapi/yarn.lock

This file was deleted.

8 changes: 4 additions & 4 deletions modules/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"test-cov": "rm -rf coverage; nyc --reporter=html mocha"
},
"devDependencies": {
"@iabtechlabtcf/testing": "1.5.7",
"@iabtechlabtcf/testing": "1.5.8",
"@istanbuljs/nyc-config-typescript": "^0.1.3",
"@types/sinon": "^10.0.11",
"@types/sinon-chai": "3.2.8",
Expand All @@ -50,9 +50,9 @@
"sinon-chai": "^3.7.0",
"source-map-support": "^0.5.12",
"terser": "^4.8.1",
"ts-node": "^10.5.0",
"typedoc": "^0.22.11",
"typescript": "4.5.5"
"ts-node": "10.9.1",
"typedoc": "0.24.8",
"typescript": "4.9.5"
},
"eslintIgnore": [
"lib"
Expand Down
9 changes: 4 additions & 5 deletions modules/core/test/GVL.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ import {IntMap} from '../src/model/IntMap';
import {XMLHttpTestTools} from '@iabtechlabtcf/testing';
import {Json} from '../src/Json';

// eslint-disable-next-line @typescript-eslint/no-var-requires
import vendorListJson from '../../testing/lib/mjs/vendorlist/vendor-list-v24.json';
// eslint-disable-next-line @typescript-eslint/no-var-requires
import translationJson from '../../testing/lib/mjs/vendorlist/purposes-fr.json';
import vendorListJson from '../../testing/lib/mjs/vendorlist/v2/vendor-list-v24.json' assert { type: 'json' };
import translationJson from '../../testing/lib/mjs/vendorlist/v2/purposes-fr.json' assert { type: 'json' };
import vendorListJson22 from '../../testing/lib/mjs/vendorlist/v2.2/vendor-list.json' assert { type: 'json' };
import {VersionOrVendorList} from '../lib/mjs';
import vendorlistJson22 from '../../testing/lib/vendorlist/v2.2/vendor-list.json');

const vendorlistJson: any = vendorListJson as unknown as VersionOrVendorList;
const vendorlistJson22: any = vendorListJson22 as unknown as VersionOrVendorList;

describe('GVL', (): void => {

Expand Down
3 changes: 1 addition & 2 deletions modules/core/test/TCModel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import {Vector} from '../src/model/Vector';
import {GVL} from '../src/GVL';
import {GVLFactory} from '../../testing/lib/mjs/GVLFactory';

// eslint-disable-next-line @typescript-eslint/no-var-requires
import vendorListVersion24Json from '../../testing/lib/mjs/vendorlist/vendor-list-v24.json';
import vendorListVersion24Json from '../../testing/lib/mjs/vendorlist/v2/vendor-list-v24.json' assert { type: 'json' };
import {VersionOrVendorList} from '../lib/mjs';

const vendorListJson: any = vendorListVersion24Json as unknown as VersionOrVendorList;
Expand Down
3 changes: 1 addition & 2 deletions modules/core/test/model/gvl/DataCategory.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {expect} from 'chai';
import {DataCategory} from '../../../src/model/gvl/DataCategory';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const vendorlistJson = require('@iabtechlabtcf/testing/lib/vendorlist/v2.2/vendor-list.json');
import vendorlistJson from '../../../../testing/lib/mjs/vendorlist/v2.2/vendor-list.json' assert { type: 'json' };

export function run(): void {

Expand Down
3 changes: 1 addition & 2 deletions modules/core/test/model/gvl/Vendor.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {expect} from 'chai';
import {Vendor} from '../../../src/model/gvl/Vendor';

// eslint-disable-next-line @typescript-eslint/no-var-requires
const vendorlistJson = require('@iabtechlabtcf/testing/lib/vendorlist/v2.2/vendor-list.json');
import vendorlistJson from '../../../../testing/lib/mjs/vendorlist/v2.2/vendor-list.json' assert { type: 'json' };

export function run(): void {

Expand Down
Loading

0 comments on commit 8afee54

Please sign in to comment.