diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 67a85921..1264d5aa 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -16,10 +16,10 @@ jobs: with: distribution: 'temurin' java-version: '17' - - name: Use Node.js 20.x + - name: Use Node.js 20.16.0 (LTS) uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version: '20.16.0' - name: Install Dependencies run: npm ci - name: Linting @@ -47,10 +47,10 @@ jobs: - uses: actions/checkout@v4 with: persist-credentials: false - - name: Use Node.js 20.x + - name: Use Node.js 20.16.0 (LTS) uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version: '20.16.0' - run: npm ci - name: Semantic Release run: npm run semantic-release diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/package-lock.json b/package-lock.json index 78ea0184..92f51f8d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,10 @@ "semantic-release": "24.1.0", "semantic-release-monorepo": "8.0.2", "typescript": "5.5.4" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "node_modules/@adobe/eslint-config-helix": { @@ -14003,6 +14007,10 @@ "sinon": "18.0.0", "sinon-chai": "4.0.0", "typescript": "5.5.4" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "packages/spacecat-shared-ahrefs-client/node_modules/@adobe/spacecat-shared-utils": { @@ -15510,7 +15518,7 @@ }, "packages/spacecat-shared-data-access": { "name": "@adobe/spacecat-shared-data-access", - "version": "1.41.6", + "version": "1.42.0", "license": "Apache-2.0", "dependencies": { "@adobe/spacecat-shared-dynamo": "1.2.5", @@ -15527,6 +15535,10 @@ "dynamo-db-local": "9.2.0", "sinon": "18.0.0", "sinon-chai": "4.0.0" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "packages/spacecat-shared-data-access/node_modules/@adobe/spacecat-shared-dynamo": { @@ -16656,6 +16668,10 @@ }, "devDependencies": { "chai": "4.5.0" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "packages/spacecat-shared-dynamo/node_modules/@adobe/spacecat-shared-utils": { @@ -16672,11 +16688,15 @@ "@adobe/helix-universal": "5.0.5", "aws4": "1.13.1" }, - "devDependencies": {} + "devDependencies": {}, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + } }, "packages/spacecat-shared-google-client": { "name": "@adobe/spacecat-shared-google-client", - "version": "1.1.19", + "version": "1.2.0", "license": "Apache-2.0", "dependencies": { "@adobe/fetch": "4.1.8", @@ -16694,6 +16714,10 @@ "sinon": "18.0.0", "sinon-chai": "4.0.0", "typescript": "5.5.4" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "packages/spacecat-shared-google-client/node_modules/@adobe/spacecat-shared-http-utils": { @@ -18920,6 +18944,10 @@ "sinon": "18.0.0", "sinon-chai": "4.0.0", "typescript": "5.5.4" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "packages/spacecat-shared-gpt-client/node_modules/@adobe/spacecat-shared-ims-client": { @@ -19082,6 +19110,10 @@ "chai": "5.1.1", "chai-as-promised": "8.0.0", "sinon": "18.0.0" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "packages/spacecat-shared-http-utils/node_modules/@adobe/spacecat-shared-data-access": { @@ -25170,6 +25202,10 @@ "sinon": "18.0.0", "sinon-chai": "4.0.0", "typescript": "5.5.4" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "packages/spacecat-shared-ims-client/node_modules/@adobe/spacecat-shared-utils": { @@ -25304,6 +25340,10 @@ "sinon": "18.0.0", "sinon-chai": "4.0.0", "typescript": "5.5.4" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "packages/spacecat-shared-rum-api-client/node_modules/@adobe/spacecat-shared-utils": { @@ -25398,6 +25438,10 @@ "sinon-chai": "4.0.0", "slack-block-builder": "2.8.0", "typescript": "5.5.4" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "packages/spacecat-shared-slack-client/node_modules/@adobe/fetch": { @@ -25514,7 +25558,7 @@ }, "packages/spacecat-shared-utils": { "name": "@adobe/spacecat-shared-utils", - "version": "1.19.4", + "version": "1.19.5", "license": "Apache-2.0", "dependencies": { "@adobe/fetch": "4.1.8", @@ -25531,6 +25575,10 @@ "nock": "13.5.4", "sinon": "18.0.0", "sinon-chai": "4.0.0" + }, + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" } }, "packages/spacecat-shared-utils/node_modules/assertion-error": { diff --git a/package.json b/package.json index 38b2a9f1..400123a9 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,10 @@ "version": "0.0.0-semantic-release", "description": "Shared modules of the Spacecat Services - monorepo", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "scripts": { "docs:api": "jsdoc2md -c .jsdoc.json --files packages/*/src/*.js > docs/API.md", "docs": "npm run docs:api", diff --git a/packages/spacecat-shared-ahrefs-client/.npmrc b/packages/spacecat-shared-ahrefs-client/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-ahrefs-client/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-ahrefs-client/package.json b/packages/spacecat-shared-ahrefs-client/package.json index cb855801..2ce03ecf 100644 --- a/packages/spacecat-shared-ahrefs-client/package.json +++ b/packages/spacecat-shared-ahrefs-client/package.json @@ -3,6 +3,10 @@ "version": "1.5.0", "description": "Shared modules of the Spacecat Services - Ahrefs Client", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/index.js", "types": "src/index.d.ts", "scripts": { diff --git a/packages/spacecat-shared-data-access/.npmrc b/packages/spacecat-shared-data-access/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-data-access/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-data-access/CHANGELOG.md b/packages/spacecat-shared-data-access/CHANGELOG.md index 5bf5d440..ce6cd04f 100644 --- a/packages/spacecat-shared-data-access/CHANGELOG.md +++ b/packages/spacecat-shared-data-access/CHANGELOG.md @@ -1,3 +1,10 @@ +# [@adobe/spacecat-shared-data-access-v1.43.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.42.0...@adobe/spacecat-shared-data-access-v1.43.0) (2024-08-21) + + +### Features + +* add initiatedBy attribute to import job ([#341](https://github.com/adobe/spacecat-shared/issues/341)) ([8a7634c](https://github.com/adobe/spacecat-shared/commit/8a7634c68cf0df01a71abc5d99a17519869f3c45)) + # [@adobe/spacecat-shared-data-access-v1.42.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-data-access-v1.41.8...@adobe/spacecat-shared-data-access-v1.42.0) (2024-08-20) diff --git a/packages/spacecat-shared-data-access/docs/schema.json b/packages/spacecat-shared-data-access/docs/schema.json index 4d3c8d68..cbac61c4 100644 --- a/packages/spacecat-shared-data-access/docs/schema.json +++ b/packages/spacecat-shared-data-access/docs/schema.json @@ -978,6 +978,10 @@ { "AttributeName": "urlCount", "AttributeType": "N" + }, + { + "AttributeName": "initiatedBy", + "AttributeType": "M" } ], "GlobalSecondaryIndexes": [ diff --git a/packages/spacecat-shared-data-access/package.json b/packages/spacecat-shared-data-access/package.json index 59230da8..b84a644e 100644 --- a/packages/spacecat-shared-data-access/package.json +++ b/packages/spacecat-shared-data-access/package.json @@ -1,8 +1,12 @@ { "name": "@adobe/spacecat-shared-data-access", - "version": "1.42.0", + "version": "1.43.0", "description": "Shared modules of the Spacecat Services - Data Access", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/index.js", "types": "src/index.d.ts", "scripts": { diff --git a/packages/spacecat-shared-data-access/src/dto/import-job.js b/packages/spacecat-shared-data-access/src/dto/import-job.js index 0afea34b..1a973df8 100644 --- a/packages/spacecat-shared-data-access/src/dto/import-job.js +++ b/packages/spacecat-shared-data-access/src/dto/import-job.js @@ -38,6 +38,7 @@ export const ImportJobDto = { successCount: importJob.getSuccessCount(), failedCount: importJob.getFailedCount(), importQueueId: importJob.getImportQueueId(), + initiatedBy: importJob.getInitiatedBy(), GSI1PK: 'ALL_IMPORT_JOBS', }), @@ -58,6 +59,7 @@ export const ImportJobDto = { successCount: dynamoItem.successCount, failedCount: dynamoItem.failedCount, importQueueId: dynamoItem.importQueueId, + initiatedBy: dynamoItem.initiatedBy, }; return createImportJob(importJobData); diff --git a/packages/spacecat-shared-data-access/src/index.d.ts b/packages/spacecat-shared-data-access/src/index.d.ts index 6c53343b..68e9da4a 100644 --- a/packages/spacecat-shared-data-access/src/index.d.ts +++ b/packages/spacecat-shared-data-access/src/index.d.ts @@ -510,6 +510,11 @@ export interface ImportJob { */ getImportQueueId: () => string; + /** + * Retrieves the initiatedBy metadata (name, imsOrgId, imsUserId, userAgent) of the import job. + */ + getInitiatedBy: () => object; + } export interface ImportUrl { diff --git a/packages/spacecat-shared-data-access/src/models/importer/import-job.js b/packages/spacecat-shared-data-access/src/models/importer/import-job.js index 62079352..6866a4f9 100644 --- a/packages/spacecat-shared-data-access/src/models/importer/import-job.js +++ b/packages/spacecat-shared-data-access/src/models/importer/import-job.js @@ -41,6 +41,7 @@ const ImportJob = (data) => { self.getSuccessCount = () => self.state.successCount; self.getFailedCount = () => self.state.failedCount; self.getImportQueueId = () => self.state.importQueueId; + self.getInitiatedBy = () => self.state.initiatedBy; /** * Updates the end time of the ImportJob. diff --git a/packages/spacecat-shared-data-access/test/it/db.test.js b/packages/spacecat-shared-data-access/test/it/db.test.js index 025809d8..5e1dff02 100644 --- a/packages/spacecat-shared-data-access/test/it/db.test.js +++ b/packages/spacecat-shared-data-access/test/it/db.test.js @@ -145,7 +145,7 @@ describe('DynamoDB Integration Test', async () => { sharedDb: true, }); - await sleep(5000); // give db time to start up + await sleep(10000); // give db time to start up try { await generateSampleData( @@ -169,24 +169,16 @@ describe('DynamoDB Integration Test', async () => { }); it('get all key events for a site', async () => { - const siteId = (await dataAccess.getSites())[0].getId(); + const siteId = (await dataAccess.getSiteByBaseURL('https://example0.com')).getId(); const keyEvents = await dataAccess.getKeyEventsForSite(siteId); expect(keyEvents.length).to.equal(NUMBER_OF_KEY_EVENTS_PER_SITE); expect(keyEvents[0].getSiteId()).to.equal(siteId); - - // check if the key events are returned in descending order - for (let i = 1; i < keyEvents.length; i += 1) { - const prev = keyEvents[i - 1]; - const next = keyEvents[i]; - const desc = prev.getCreatedAt() >= next.getCreatedAt(); - expect(desc).to.be.true; - } }); it('add a new key event for a site', async () => { - const siteId = (await dataAccess.getSites())[0].getId(); + const siteId = (await dataAccess.getSiteByBaseURL('https://example0.com')).getId(); await dataAccess.createKeyEvent({ siteId, @@ -200,7 +192,7 @@ describe('DynamoDB Integration Test', async () => { }); it('remove a key event', async () => { - const siteId = (await dataAccess.getSites())[0].getId(); + const siteId = (await dataAccess.getSiteByBaseURL('https://example0.com')).getId(); const keyEvents = await dataAccess.getKeyEventsForSite(siteId); await dataAccess.removeKeyEvent(keyEvents[0].getId()); diff --git a/packages/spacecat-shared-data-access/test/unit/models/importer/import-job.test.js b/packages/spacecat-shared-data-access/test/unit/models/importer/import-job.test.js index cf0e241d..5cff227a 100644 --- a/packages/spacecat-shared-data-access/test/unit/models/importer/import-job.test.js +++ b/packages/spacecat-shared-data-access/test/unit/models/importer/import-job.test.js @@ -25,6 +25,9 @@ const validImportJob = { enableJavascript: true, enableCss: true, }, + initiatedBy: { + apiKeyName: 'test', + }, }; describe('ImportJob Model tests', () => { describe('Validation Tests', () => { @@ -50,7 +53,7 @@ describe('ImportJob Model tests', () => { it('creates an import job object with a startTime', () => { const importJob = createImportJob({ ...validImportJob, startTime: '' }); - expect(importJob.getStartTime()).is.not.empty; + expect(importJob.getStartTime()).to.match(/^20/); }); }); diff --git a/packages/spacecat-shared-data-access/test/unit/service/import-job/index.test.js b/packages/spacecat-shared-data-access/test/unit/service/import-job/index.test.js index 4128eee1..1e39e4f5 100644 --- a/packages/spacecat-shared-data-access/test/unit/service/import-job/index.test.js +++ b/packages/spacecat-shared-data-access/test/unit/service/import-job/index.test.js @@ -59,13 +59,17 @@ describe('Import Job Tests', () => { baseURL: 'https://www.test.com', hashedApiKey: '4c806362b613f7496abf284146efd31da90e4b16169fe001841ca17290f427c4', importQueueId: 'test-import-queue-id', + initiatedBy: { + apiKeyName: 'test-user', + imsUserId: 'test-ims-user-id', + imsOrgId: 'test-ims-org-id', + userAgent: 'test-user-agent', + }, }; mockDynamoClient.getItem.resolves(mockImportJob); const result = await exportedFunctions.getImportJobByID('test-id'); - expect(result).to.be.not.null; expect(result.state.id).to.equal('test-id'); - expect(mockDynamoClient.getItem).to.have.been.calledOnce; }); it('should return null if item is not found', async () => { @@ -73,7 +77,7 @@ describe('Import Job Tests', () => { const result = await exportedFunctions.getImportJobByID('test-id'); - expect(result).to.be.null; + expect(result).to.equal(null); }); }); @@ -87,6 +91,12 @@ describe('Import Job Tests', () => { hashedApiKey: '4c806362b613f7496abf284146efd31da90e4b16169fe001841ca17290f427c4', startTime: '2024-05-28T14:26:00.000Z', importQueueId: 'test-import-queue-id', + initiatedBy: { + apiKeyName: 'test-user', + imsUserId: 'test-ims-user-id', + imsOrgId: 'test-ims-org-id', + userAgent: 'test-user-agent', + }, }, { id: 'test-id-1', @@ -96,6 +106,12 @@ describe('Import Job Tests', () => { hashedApiKey: '5c806362b613f7496abf284146efd31da90e4b16169fe001841ca17290f427c4', startTime: '2024-06-01T14:26:00.000Z', importQueueId: 'test-import-queue-id-1', + initiatedBy: { + apiKeyName: 'test-user', + imsUserId: 'test-ims-user-id', + imsOrgId: 'test-ims-org-id', + userAgent: 'test-user-agent', + }, }]; mockDynamoClient.query.resolves(mockImportJobs); @@ -114,6 +130,12 @@ describe('Import Job Tests', () => { baseURL: 'https://www.test.com', hashedApiKey: '4c806362b613f7496abf284146efd31da90e4b16169fe001841ca17290f427c4', importQueueId: 'test-import-queue-id', + initiatedBy: { + apiKeyName: 'test-user', + imsUserId: 'test-ims-user-id', + imsOrgId: 'test-ims-org-id', + userAgent: 'test-user-agent', + }, }, { id: 'test-id-1', @@ -122,6 +144,12 @@ describe('Import Job Tests', () => { baseURL: 'https://www.test1.com', hashedApiKey: '5c806362b613f7496abf284146efd31da90e4b16169fe001841ca17290f427c4', importQueueId: 'test-import-queue-id-1', + initiatedBy: { + apiKeyName: 'test-user', + imsUserId: 'test-ims-user-id', + imsOrgId: 'test-ims-org-id', + userAgent: 'test-user-agent', + }, }]; mockDynamoClient.query.resolves(mockImportJobs); @@ -140,13 +168,19 @@ describe('Import Job Tests', () => { baseURL: 'https://www.test.com', hashedApiKey: '4c806362b613f7496abf284146efd31da90e4b16169fe001841ca17290f427c4', importQueueId: 'test-import-queue-id', + initiatedBy: { + apiKeyName: 'test-user', + imsUserId: 'test-ims-user-id', + imsOrgId: 'test-ims-org-id', + userAgent: 'test-user-agent', + }, }; const result = await exportedFunctions.createNewImportJob( mockImportJobData, ); - expect(result).to.be.not.null; - expect(mockDynamoClient.putItem.calledOnce).to.be.true; + expect(result.state.initiatedBy.apiKeyName).to.equal('test-user'); + expect(result.state.baseURL).to.equal('https://www.test.com'); }); }); @@ -159,6 +193,12 @@ describe('Import Job Tests', () => { baseURL: 'https://www.test.com', hashedApiKey: '4c806362b613f7496abf284146efd31da90e4b16169fe001841ca17290f427c4', importQueueId: 'test-import-queue-id', + initiatedBy: { + apiKeyName: 'test-user', + imsUserId: 'test-ims-user-id', + imsOrgId: 'test-ims-org-id', + userAgent: 'test-user-agent', + }, }; mockDynamoClient.getItem.resolves(mockImportJobData); @@ -167,9 +207,6 @@ describe('Import Job Tests', () => { const result = await exportedFunctions.updateImportJob( importJob, ); - - expect(result).to.be.not.null; - expect(mockDynamoClient.putItem).to.have.been.calledOnce; expect(result.getStatus()).to.equal('COMPLETE'); }); @@ -180,6 +217,12 @@ describe('Import Job Tests', () => { hashedApiKey: '4c806362b613f7496abf284146efd31da90e4b16169fe001841ca17290f427c4', options: {}, baseURL: 'https://www.test.com', + initiatedBy: { + apiKeyName: 'test-user', + imsUserId: 'test-ims-user-id', + imsOrgId: 'test-ims-org-id', + userAgent: 'test-user-agent', + }, }; const importJob = createImportJob(mockImportJobData); const result = exportedFunctions.updateImportJob(importJob); diff --git a/packages/spacecat-shared-dynamo/.npmrc b/packages/spacecat-shared-dynamo/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-dynamo/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-dynamo/package.json b/packages/spacecat-shared-dynamo/package.json index fcf6497a..93ae7681 100644 --- a/packages/spacecat-shared-dynamo/package.json +++ b/packages/spacecat-shared-dynamo/package.json @@ -3,6 +3,10 @@ "version": "1.3.33", "description": "Shared modules of the Spacecat Services - DynamoDB client", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/index.js", "types": "src/index.d.ts", "scripts": { diff --git a/packages/spacecat-shared-example/.npmrc b/packages/spacecat-shared-example/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-example/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-example/package.json b/packages/spacecat-shared-example/package.json index 8a9bd3c3..8c0ee661 100644 --- a/packages/spacecat-shared-example/package.json +++ b/packages/spacecat-shared-example/package.json @@ -3,6 +3,10 @@ "version": "1.2.13", "description": "Shared modules of the Spacecat Services - example", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/example-wrapper.js", "types": "src/example-wrapper.d.ts", "scripts": { diff --git a/packages/spacecat-shared-google-client/.npmrc b/packages/spacecat-shared-google-client/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-google-client/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-google-client/package.json b/packages/spacecat-shared-google-client/package.json index 8d85a36a..ba8b5166 100644 --- a/packages/spacecat-shared-google-client/package.json +++ b/packages/spacecat-shared-google-client/package.json @@ -3,6 +3,10 @@ "version": "1.2.0", "description": "Shared modules of the Spacecat Services - Google Client", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/index.js", "types": "src/index.d.ts", "scripts": { diff --git a/packages/spacecat-shared-gpt-client/.npmrc b/packages/spacecat-shared-gpt-client/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-gpt-client/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-gpt-client/package.json b/packages/spacecat-shared-gpt-client/package.json index 1ca3a0a9..1a48b56a 100644 --- a/packages/spacecat-shared-gpt-client/package.json +++ b/packages/spacecat-shared-gpt-client/package.json @@ -3,6 +3,10 @@ "version": "1.2.11", "description": "Shared modules of the Spacecat Services - GPT Client", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/index.js", "types": "src/index.d.ts", "scripts": { diff --git a/packages/spacecat-shared-http-utils/.npmrc b/packages/spacecat-shared-http-utils/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-http-utils/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-http-utils/package.json b/packages/spacecat-shared-http-utils/package.json index 25e5141d..a2d21f99 100644 --- a/packages/spacecat-shared-http-utils/package.json +++ b/packages/spacecat-shared-http-utils/package.json @@ -3,6 +3,10 @@ "version": "1.6.7", "description": "Shared modules of the Spacecat Services - HTTP Utils", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/index.js", "types": "src/index.d.ts", "scripts": { diff --git a/packages/spacecat-shared-ims-client/.npmrc b/packages/spacecat-shared-ims-client/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-ims-client/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-ims-client/package.json b/packages/spacecat-shared-ims-client/package.json index f0a852b6..750b87e9 100644 --- a/packages/spacecat-shared-ims-client/package.json +++ b/packages/spacecat-shared-ims-client/package.json @@ -3,6 +3,10 @@ "version": "1.3.12", "description": "Shared modules of the Spacecat Services - IMS Client", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/index.js", "types": "src/index.d.ts", "scripts": { diff --git a/packages/spacecat-shared-rum-api-client/.npmrc b/packages/spacecat-shared-rum-api-client/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-rum-api-client/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-rum-api-client/package.json b/packages/spacecat-shared-rum-api-client/package.json index 3835f142..d8af7065 100644 --- a/packages/spacecat-shared-rum-api-client/package.json +++ b/packages/spacecat-shared-rum-api-client/package.json @@ -3,6 +3,10 @@ "version": "2.7.3", "description": "Shared modules of the Spacecat Services - Rum API client", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/index.js", "types": "src/index.d.ts", "scripts": { diff --git a/packages/spacecat-shared-slack-client/.npmrc b/packages/spacecat-shared-slack-client/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-slack-client/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-slack-client/package.json b/packages/spacecat-shared-slack-client/package.json index 0e07ac03..c0cc7fa3 100644 --- a/packages/spacecat-shared-slack-client/package.json +++ b/packages/spacecat-shared-slack-client/package.json @@ -3,6 +3,10 @@ "version": "1.3.12", "description": "Shared modules of the Spacecat Services - Slack Client", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/index.js", "types": "src/index.d.ts", "scripts": { diff --git a/packages/spacecat-shared-utils/.npmrc b/packages/spacecat-shared-utils/.npmrc new file mode 100644 index 00000000..b6f27f13 --- /dev/null +++ b/packages/spacecat-shared-utils/.npmrc @@ -0,0 +1 @@ +engine-strict=true diff --git a/packages/spacecat-shared-utils/package.json b/packages/spacecat-shared-utils/package.json index 314f6434..d2c87448 100644 --- a/packages/spacecat-shared-utils/package.json +++ b/packages/spacecat-shared-utils/package.json @@ -3,6 +3,10 @@ "version": "1.19.5", "description": "Shared modules of the Spacecat Services - utils", "type": "module", + "engines": { + "node": "^20.0.0 <21.0.0", + "npm": "^10.0.0 <11.0.0" + }, "main": "src/index.js", "types": "src/index.d.ts", "scripts": {