From 3c4b14d4b1fec02a003b792836777831f8c64422 Mon Sep 17 00:00:00 2001 From: Pierluigi Viti Date: Wed, 25 Oct 2023 15:25:01 +0200 Subject: [PATCH] chore(core): fix readonly attributes and update dependencies --- pnpm-lock.yaml | 58 ++++++++++++++++++++++++------------------------- src/client.ts | 2 +- src/resource.ts | 4 ++-- 3 files changed, 32 insertions(+), 32 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 43d616a0..72774174 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1917,7 +1917,7 @@ packages: '@octokit/graphql': 7.0.2 '@octokit/request': 8.1.4 '@octokit/request-error': 5.0.1 - '@octokit/types': 12.0.0 + '@octokit/types': 12.1.0 before-after-hook: 2.2.3 universal-user-agent: 6.0.0 dev: true @@ -1926,7 +1926,7 @@ packages: resolution: {integrity: sha512-hRlOKAovtINHQPYHZlfyFwaM8OyetxeoC81lAkBy34uLb8exrZB50SQdeW3EROqiY9G9yxQTpp5OHTV54QD+vA==} engines: {node: '>= 18'} dependencies: - '@octokit/types': 12.0.0 + '@octokit/types': 12.1.0 is-plain-object: 5.0.0 universal-user-agent: 6.0.0 dev: true @@ -1936,22 +1936,22 @@ packages: engines: {node: '>= 18'} dependencies: '@octokit/request': 8.1.4 - '@octokit/types': 12.0.0 + '@octokit/types': 12.1.0 universal-user-agent: 6.0.0 dev: true - /@octokit/openapi-types@19.0.0: - resolution: {integrity: sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw==} + /@octokit/openapi-types@19.0.1: + resolution: {integrity: sha512-zC+73r2HIoRb9rWW5S3Y759hrpadlD5pNnya/QfZv0JZE7mvMu+FUa7nxHqTadi2hZc4BPZjJ8veDTuJnh8+8g==} dev: true - /@octokit/plugin-paginate-rest@9.0.0(@octokit/core@5.0.1): - resolution: {integrity: sha512-oIJzCpttmBTlEhBmRvb+b9rlnGpmFgDtZ0bB6nq39qIod6A5DP+7RkVLMOixIgRCYSHDTeayWqmiJ2SZ6xgfdw==} + /@octokit/plugin-paginate-rest@9.1.0(@octokit/core@5.0.1): + resolution: {integrity: sha512-FK1WMa5261SaMX/33S1EOEzalnu9+YoKfrxzRVimciachMFSWH9kQ9SOKdxxxuZXX+KxCLw1knQkneSLYmgdbg==} engines: {node: '>= 18'} peerDependencies: '@octokit/core': '>=5' dependencies: '@octokit/core': 5.0.1 - '@octokit/types': 12.0.0 + '@octokit/types': 12.1.0 dev: true /@octokit/plugin-retry@6.0.1(@octokit/core@5.0.1): @@ -1962,18 +1962,18 @@ packages: dependencies: '@octokit/core': 5.0.1 '@octokit/request-error': 5.0.1 - '@octokit/types': 12.0.0 + '@octokit/types': 12.1.0 bottleneck: 2.19.5 dev: true - /@octokit/plugin-throttling@8.0.1(@octokit/core@5.0.1): - resolution: {integrity: sha512-i373s7TgaoAOlzOepjUTvyMXqjBu9b26SvLyLD5onBdgexIOeu43yOH1e3z3VPAzbEyRfKDHcqfAsOyKl7Jtxg==} + /@octokit/plugin-throttling@8.1.0(@octokit/core@5.0.1): + resolution: {integrity: sha512-QfClJJhS+sZEFz0NX3Wm6E3q9059dZU3dTVNEZHS9i/rI8bOqPviIeGW255lzT+25/6HflVZYejo1hnr3LF68A==} engines: {node: '>= 18'} peerDependencies: '@octokit/core': ^5.0.0 dependencies: '@octokit/core': 5.0.1 - '@octokit/types': 12.0.0 + '@octokit/types': 12.1.0 bottleneck: 2.19.5 dev: true @@ -1981,7 +1981,7 @@ packages: resolution: {integrity: sha512-X7pnyTMV7MgtGmiXBwmO6M5kIPrntOXdyKZLigNfQWSEQzVxR4a4vo49vJjTWX70mPndj8KhfT4Dx+2Ng3vnBQ==} engines: {node: '>= 18'} dependencies: - '@octokit/types': 12.0.0 + '@octokit/types': 12.1.0 deprecation: 2.3.1 once: 1.4.0 dev: true @@ -1992,15 +1992,15 @@ packages: dependencies: '@octokit/endpoint': 9.0.1 '@octokit/request-error': 5.0.1 - '@octokit/types': 12.0.0 + '@octokit/types': 12.1.0 is-plain-object: 5.0.0 universal-user-agent: 6.0.0 dev: true - /@octokit/types@12.0.0: - resolution: {integrity: sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==} + /@octokit/types@12.1.0: + resolution: {integrity: sha512-JmjQr5ZbOnpnOLX5drI2O2I1N9suOYZAgINHXTlVVg4lRtUifMv2JssT+RhmNxQwXH153Pc8HaCMdTRkqI1oVQ==} dependencies: - '@octokit/openapi-types': 19.0.0 + '@octokit/openapi-types': 19.0.1 dev: true /@pkgjs/parseargs@0.11.0: @@ -2110,9 +2110,9 @@ packages: semantic-release: '>=20.1.0' dependencies: '@octokit/core': 5.0.1 - '@octokit/plugin-paginate-rest': 9.0.0(@octokit/core@5.0.1) + '@octokit/plugin-paginate-rest': 9.1.0(@octokit/core@5.0.1) '@octokit/plugin-retry': 6.0.1(@octokit/core@5.0.1) - '@octokit/plugin-throttling': 8.0.1(@octokit/core@5.0.1) + '@octokit/plugin-throttling': 8.1.0(@octokit/core@5.0.1) '@semantic-release/error': 4.0.0 aggregate-error: 5.0.0 debug: 4.3.4 @@ -2842,8 +2842,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001553 - electron-to-chromium: 1.4.565 + caniuse-lite: 1.0.30001554 + electron-to-chromium: 1.4.566 node-releases: 2.0.13 update-browserslist-db: 1.0.13(browserslist@4.22.1) dev: true @@ -2894,8 +2894,8 @@ packages: engines: {node: '>=10'} dev: true - /caniuse-lite@1.0.30001553: - resolution: {integrity: sha512-N0ttd6TrFfuqKNi+pMgWJTb9qrdJu4JSpgPFLe/lrD19ugC6fZgF0pUewRowDwzdDnb9V41mFcdlYgl/PyKf4A==} + /caniuse-lite@1.0.30001554: + resolution: {integrity: sha512-A2E3U//MBwbJVzebddm1YfNp7Nud5Ip+IPn4BozBmn4KqVX7AvluoIDFWjsv5OkGnKUXQVmMSoMKLa3ScCblcQ==} dev: true /cardinal@2.1.1: @@ -3302,8 +3302,8 @@ packages: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: true - /electron-to-chromium@1.4.565: - resolution: {integrity: sha512-XbMoT6yIvg2xzcbs5hCADi0dXBh4//En3oFXmtPX+jiyyiCTiM9DGFT2SLottjpEs9Z8Mh8SqahbR96MaHfuSg==} + /electron-to-chromium@1.4.566: + resolution: {integrity: sha512-mv+fAy27uOmTVlUULy15U3DVJ+jg+8iyKH1bpwboCRhtDC69GKf1PPTZvEIhCyDr81RFqfxZJYrbgp933a1vtg==} dev: true /emittery@0.13.1: @@ -5927,7 +5927,7 @@ packages: dependencies: find-up: 6.3.0 read-pkg: 8.1.0 - type-fest: 4.5.0 + type-fest: 4.6.0 dev: true /read-pkg@8.1.0: @@ -5937,7 +5937,7 @@ packages: '@types/normalize-package-data': 2.4.3 normalize-package-data: 6.0.0 parse-json: 7.1.0 - type-fest: 4.5.0 + type-fest: 4.6.0 dev: true /readable-stream@2.3.8: @@ -6611,8 +6611,8 @@ packages: engines: {node: '>=14.16'} dev: true - /type-fest@4.5.0: - resolution: {integrity: sha512-diLQivFzddJl4ylL3jxSkEc39Tpw7o1QeEHIPxVwryDK2lpB7Nqhzhuo6v5/Ls08Z0yPSAhsyAWlv1/H0ciNmw==} + /type-fest@4.6.0: + resolution: {integrity: sha512-rLjWJzQFOq4xw7MgJrCZ6T1jIOvvYElXT12r+y0CC6u67hegDHaxcPqb2fZHOGlqxugGQPNB1EnTezjBetkwkw==} engines: {node: '>=16'} dev: true diff --git a/src/client.ts b/src/client.ts index f486a422..aa28b493 100644 --- a/src/client.ts +++ b/src/client.ts @@ -53,7 +53,7 @@ class ApiClient { baseUrl: string #accessToken: string - #client: AxiosInstance + readonly #client: AxiosInstance public interceptors: InterceptorManager diff --git a/src/resource.ts b/src/resource.ts index bd98c890..608018e0 100644 --- a/src/resource.ts +++ b/src/resource.ts @@ -99,9 +99,9 @@ type ResourcesConfig = Partial class ResourceAdapter { - #client: ApiClient + readonly #client: ApiClient - #config: ResourceAdapterConfig = {} + readonly #config: ResourceAdapterConfig = {} constructor(config: ResourcesInitConfig) {