diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index bf825822b..b44c7204f 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,9 +1,9 @@ -const utils = require('./utils.ts'); +import { copyFile, rewriteFile } from './utils.js'; -utils.copyFile('README.md', 'index.md'); -utils.copyFile('CONTRIBUTING.md', 'CONTRIBUTING.md'); +copyFile('README.md', 'index.md'); +copyFile('CONTRIBUTING.md', 'CONTRIBUTING.md'); -utils.rewriteFile('../apidocs/README.md', /\(CONTRIBUTING.md\)/g, '(../CONTRIBUTING.md)'); +rewriteFile('../apidocs/README.md', /\(CONTRIBUTING.md\)/g, '(../CONTRIBUTING.md)'); export default { title: 'line-bot-sdk-nodejs', diff --git a/docs/.vitepress/utils.ts b/docs/.vitepress/utils.ts index 16c287a17..660bc3503 100644 --- a/docs/.vitepress/utils.ts +++ b/docs/.vitepress/utils.ts @@ -1,21 +1,27 @@ -const fs = require('fs'); -const path = require('path'); +import fs from 'node:fs'; +import path from 'node:path'; +import {fileURLToPath} from 'node:url'; +import {dirname} from 'node:path'; + +// __dirname is not available in ESM, so we need to derive it +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(__filename); function copyFile(sourceFilename, targetFilename) { - const sourcePath = path.join(__dirname, '../../', sourceFilename); - const targetPath = path.join(__dirname, '../', targetFilename); - const md = fs.readFileSync(sourcePath, 'utf-8'); - fs.writeFileSync(targetPath, md); + const sourcePath = path.join(__dirname, '../../', sourceFilename); + const targetPath = path.join(__dirname, '../', targetFilename); + const md = fs.readFileSync(sourcePath, 'utf-8'); + fs.writeFileSync(targetPath, md); } function rewriteFile(filename, regex, replacement) { - console.log("Rewriting file: ", filename, " with regex: ", regex, " and replacement: ", replacement) - const content = fs.readFileSync(path.join(__dirname, filename), 'utf-8'); - const newContent = content.replace(regex, replacement); - fs.writeFileSync(path.join(__dirname, filename), newContent); + console.log("Rewriting file: ", filename, " with regex: ", regex, " and replacement: ", replacement) + const content = fs.readFileSync(path.join(__dirname, filename), 'utf-8'); + const newContent = content.replace(regex, replacement); + fs.writeFileSync(path.join(__dirname, filename), newContent); } export { - copyFile, - rewriteFile, + copyFile, + rewriteFile }; diff --git a/generate-code.py b/generate-code.py index 96619bb8f..1e265afab 100644 --- a/generate-code.py +++ b/generate-code.py @@ -76,7 +76,7 @@ def generate_webhook(): run_command(f'rm -rf lib/webhook/tests/') with open('lib/webhook/api.ts', 'w') as wfp: - wfp.write("""export * from './model/models';""") + wfp.write("""export * from './model/models.js';""") def main(): diff --git a/generator/src/main/resources/line-bot-sdk-nodejs-generator/api-all.pebble b/generator/src/main/resources/line-bot-sdk-nodejs-generator/api-all.pebble index ed67d7c50..5dcf88e18 100644 --- a/generator/src/main/resources/line-bot-sdk-nodejs-generator/api-all.pebble +++ b/generator/src/main/resources/line-bot-sdk-nodejs-generator/api-all.pebble @@ -1,4 +1,4 @@ {# @pebvariable name="apiInfo" type="org.openapitools.codegen.model.ApiInfoMap" #} {% for api in apiInfo.apis -%} -export { {{ api.operations.classname }} } from './{{ api.get("classFilename") }}'; +export { {{ api.operations.classname }} } from './{{ api.get("classFilename") }}.js'; {% endfor %} diff --git a/generator/src/main/resources/line-bot-sdk-nodejs-generator/api-single.pebble b/generator/src/main/resources/line-bot-sdk-nodejs-generator/api-single.pebble index 51208af67..e238221fb 100644 --- a/generator/src/main/resources/line-bot-sdk-nodejs-generator/api-single.pebble +++ b/generator/src/main/resources/line-bot-sdk-nodejs-generator/api-single.pebble @@ -5,13 +5,13 @@ /* tslint:disable:no-unused-locals */ {% for import in imports -%} -import { {{import.classname}} } from '{{import.filename}}'; +import { {{import.classname}} } from '{{import.filename}}.js'; {% endfor %} -import * as Types from "../../types"; -import {ensureJSON} from "../../utils"; +import * as Types from "../../types.js"; +import {ensureJSON} from "../../utils.js"; import {Readable} from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/generator/src/main/resources/line-bot-sdk-nodejs-generator/api.pebble b/generator/src/main/resources/line-bot-sdk-nodejs-generator/api.pebble index b1119f15c..048a59bd5 100644 --- a/generator/src/main/resources/line-bot-sdk-nodejs-generator/api.pebble +++ b/generator/src/main/resources/line-bot-sdk-nodejs-generator/api.pebble @@ -1,3 +1,3 @@ // This is the entrypoint for the package -export * from './api/apis'; -export * from './model/models'; +export * from './api/apis.js'; +export * from './model/models.js'; diff --git a/generator/src/main/resources/line-bot-sdk-nodejs-generator/api_test.pebble b/generator/src/main/resources/line-bot-sdk-nodejs-generator/api_test.pebble index 74005d494..4881a30bb 100644 --- a/generator/src/main/resources/line-bot-sdk-nodejs-generator/api_test.pebble +++ b/generator/src/main/resources/line-bot-sdk-nodejs-generator/api_test.pebble @@ -1,15 +1,17 @@ {# @pebvariable name="imports" type="java.util.List>" #} {# @pebvariable name="operations" type="org.openapitools.codegen.model.OperationMap" #} {# @pebvariable name="authMethods" type="java.util.ArrayList" -#} -import { {{operations.classname}} } from "../../api"; +import { {{operations.classname}} } from "../../api.js"; {% for import in imports -%} -import { {{import.classname}} } from '../{{import.filename}}'; +import { {{import.classname}} } from '../{{import.filename}}.js'; {% endfor %} import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; {% macro paramDummyValue(param) %} diff --git a/generator/src/main/resources/line-bot-sdk-nodejs-generator/model.pebble b/generator/src/main/resources/line-bot-sdk-nodejs-generator/model.pebble index b044274a2..39b9e3b39 100644 --- a/generator/src/main/resources/line-bot-sdk-nodejs-generator/model.pebble +++ b/generator/src/main/resources/line-bot-sdk-nodejs-generator/model.pebble @@ -3,12 +3,12 @@ {% for model in models %} {% for tsi in model.get('tsImports') -%} -import { {{ tsi.classname }} } from '{{ tsi.filename }}'; +import { {{ tsi.classname }} } from '{{ tsi.filename }}.js'; {%- endfor %} {% if model.model.discriminator != null %} {% for model in model.model.discriminator.mappedModels -%} -import { {{model.modelName}} } from './models'; +import { {{model.modelName}} } from './models.js'; {% endfor %} export type {{classname}} = @@ -30,7 +30,7 @@ export type Unknown{{classname}} = {{classname}}Base & { {%- endif -%} {% if not model.model.isEnum -%} {% if model.model.parent != null %} -import { {{ model.model.parent }}Base } from './models'; +import { {{ model.model.parent }}Base } from './models.js'; {% endif %} export type {{classname}}{% if model.model.discriminator != null %}Base{% endif %} = {% if model.model.parent != null %}{{ model.model.parent }}Base & {% endif %} { {% if model.model.vendorExtensions.get("x-selector") != null %} diff --git a/generator/src/main/resources/line-bot-sdk-nodejs-generator/models.pebble b/generator/src/main/resources/line-bot-sdk-nodejs-generator/models.pebble index ad3f9f570..72661371a 100644 --- a/generator/src/main/resources/line-bot-sdk-nodejs-generator/models.pebble +++ b/generator/src/main/resources/line-bot-sdk-nodejs-generator/models.pebble @@ -1,4 +1,4 @@ {# @pebvariable name="models" type="java.util.ArrayList" #} {% for model in models -%} -export * from '{{ model.model.classFilename }}'; +export * from '{{ model.model.classFilename }}.js'; {%- endfor %} diff --git a/lib/channel-access-token/api.ts b/lib/channel-access-token/api.ts index eeedcdab6..ea34fcbaf 100644 --- a/lib/channel-access-token/api.ts +++ b/lib/channel-access-token/api.ts @@ -1,3 +1,3 @@ // This is the entrypoint for the package -export * from "./api/apis"; -export * from "./model/models"; +export * from "./api/apis.js"; +export * from "./model/models.js"; diff --git a/lib/channel-access-token/api/apis.ts b/lib/channel-access-token/api/apis.ts index aa7db257a..88cfbcf37 100644 --- a/lib/channel-access-token/api/apis.ts +++ b/lib/channel-access-token/api/apis.ts @@ -1 +1 @@ -export { ChannelAccessTokenClient } from "./channelAccessTokenClient"; +export { ChannelAccessTokenClient } from "./channelAccessTokenClient.js"; diff --git a/lib/channel-access-token/api/channelAccessTokenClient.ts b/lib/channel-access-token/api/channelAccessTokenClient.ts index eaf05d43c..10baf01bc 100644 --- a/lib/channel-access-token/api/channelAccessTokenClient.ts +++ b/lib/channel-access-token/api/channelAccessTokenClient.ts @@ -11,18 +11,20 @@ */ /* tslint:disable:no-unused-locals */ -import { ChannelAccessTokenKeyIdsResponse } from "../model/channelAccessTokenKeyIdsResponse"; -import { ErrorResponse } from "../model/errorResponse"; -import { IssueChannelAccessTokenResponse } from "../model/issueChannelAccessTokenResponse"; -import { IssueShortLivedChannelAccessTokenResponse } from "../model/issueShortLivedChannelAccessTokenResponse"; -import { IssueStatelessChannelAccessTokenResponse } from "../model/issueStatelessChannelAccessTokenResponse"; -import { VerifyChannelAccessTokenResponse } from "../model/verifyChannelAccessTokenResponse"; +import { ChannelAccessTokenKeyIdsResponse } from "../model/channelAccessTokenKeyIdsResponse.js"; +import { ErrorResponse } from "../model/errorResponse.js"; +import { IssueChannelAccessTokenResponse } from "../model/issueChannelAccessTokenResponse.js"; +import { IssueShortLivedChannelAccessTokenResponse } from "../model/issueShortLivedChannelAccessTokenResponse.js"; +import { IssueStatelessChannelAccessTokenResponse } from "../model/issueStatelessChannelAccessTokenResponse.js"; +import { VerifyChannelAccessTokenResponse } from "../model/verifyChannelAccessTokenResponse.js"; -import * as Types from "../../types"; -import { ensureJSON } from "../../utils"; +import * as Types from "../../types.js"; +import { ensureJSON } from "../../utils.js"; import { Readable } from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/lib/channel-access-token/model/models.ts b/lib/channel-access-token/model/models.ts index 5307ff1da..03e632751 100644 --- a/lib/channel-access-token/model/models.ts +++ b/lib/channel-access-token/model/models.ts @@ -1,6 +1,6 @@ -export * from "./channelAccessTokenKeyIdsResponse"; -export * from "./errorResponse"; -export * from "./issueChannelAccessTokenResponse"; -export * from "./issueShortLivedChannelAccessTokenResponse"; -export * from "./issueStatelessChannelAccessTokenResponse"; -export * from "./verifyChannelAccessTokenResponse"; +export * from "./channelAccessTokenKeyIdsResponse.js"; +export * from "./errorResponse.js"; +export * from "./issueChannelAccessTokenResponse.js"; +export * from "./issueShortLivedChannelAccessTokenResponse.js"; +export * from "./issueStatelessChannelAccessTokenResponse.js"; +export * from "./verifyChannelAccessTokenResponse.js"; diff --git a/lib/channel-access-token/tests/api/ChannelAccessTokenClientTest.spec.ts b/lib/channel-access-token/tests/api/ChannelAccessTokenClientTest.spec.ts index cd55897d2..c0f1b8bab 100644 --- a/lib/channel-access-token/tests/api/ChannelAccessTokenClientTest.spec.ts +++ b/lib/channel-access-token/tests/api/ChannelAccessTokenClientTest.spec.ts @@ -1,15 +1,17 @@ -import { ChannelAccessTokenClient } from "../../api"; +import { ChannelAccessTokenClient } from "../../api.js"; -import { ChannelAccessTokenKeyIdsResponse } from "../../model/channelAccessTokenKeyIdsResponse"; -import { ErrorResponse } from "../../model/errorResponse"; -import { IssueChannelAccessTokenResponse } from "../../model/issueChannelAccessTokenResponse"; -import { IssueShortLivedChannelAccessTokenResponse } from "../../model/issueShortLivedChannelAccessTokenResponse"; -import { IssueStatelessChannelAccessTokenResponse } from "../../model/issueStatelessChannelAccessTokenResponse"; -import { VerifyChannelAccessTokenResponse } from "../../model/verifyChannelAccessTokenResponse"; +import { ChannelAccessTokenKeyIdsResponse } from "../../model/channelAccessTokenKeyIdsResponse.js"; +import { ErrorResponse } from "../../model/errorResponse.js"; +import { IssueChannelAccessTokenResponse } from "../../model/issueChannelAccessTokenResponse.js"; +import { IssueShortLivedChannelAccessTokenResponse } from "../../model/issueShortLivedChannelAccessTokenResponse.js"; +import { IssueStatelessChannelAccessTokenResponse } from "../../model/issueStatelessChannelAccessTokenResponse.js"; +import { VerifyChannelAccessTokenResponse } from "../../model/verifyChannelAccessTokenResponse.js"; import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; describe("ChannelAccessTokenClient", () => { diff --git a/lib/client.ts b/lib/client.ts index 549112858..7638f2631 100644 --- a/lib/client.ts +++ b/lib/client.ts @@ -1,14 +1,14 @@ import { Readable } from "node:stream"; -import HTTPClient from "./http-axios"; -import * as Types from "./types"; +import HTTPClient from "./http-axios.js"; +import * as Types from "./types.js"; import { AxiosRequestConfig, AxiosResponse } from "axios"; -import { createMultipartFormData, ensureJSON, toArray } from "./utils"; +import { createMultipartFormData, ensureJSON, toArray } from "./utils.js"; import { DATA_API_PREFIX, MESSAGING_API_PREFIX, OAUTH_BASE_PREFIX, OAUTH_BASE_PREFIX_V2_1, -} from "./endpoints"; +} from "./endpoints.js"; type ChatType = "group" | "room"; type RequestOption = { diff --git a/lib/http-axios.ts b/lib/http-axios.ts index aa6176f78..1783be71a 100644 --- a/lib/http-axios.ts +++ b/lib/http-axios.ts @@ -5,8 +5,8 @@ import axios, { AxiosRequestConfig, } from "axios"; import { Readable } from "node:stream"; -import { HTTPError, ReadError, RequestError } from "./exceptions"; -import { USER_AGENT } from "./version"; +import { HTTPError, ReadError, RequestError } from "./exceptions.js"; +import { USER_AGENT } from "./version.js"; interface httpClientConfig extends Partial { baseURL?: string; diff --git a/lib/http-fetch.ts b/lib/http-fetch.ts index 9e731ed99..c72c16db6 100644 --- a/lib/http-fetch.ts +++ b/lib/http-fetch.ts @@ -1,6 +1,6 @@ import { Readable } from "node:stream"; -import { HTTPFetchError } from "./exceptions"; -import { USER_AGENT } from "./version"; +import { HTTPFetchError } from "./exceptions.js"; +import { USER_AGENT } from "./version.js"; export interface FetchRequestConfig { headers?: Record; diff --git a/lib/index.ts b/lib/index.ts index b4b58ebba..d0afe5476 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,29 +1,29 @@ -import Client, { OAuth } from "./client"; -import middleware from "./middleware"; -import validateSignature from "./validate-signature"; +import Client, { OAuth } from "./client.js"; +import middleware from "./middleware.js"; +import validateSignature from "./validate-signature.js"; export { Client, middleware, validateSignature, OAuth }; // re-export exceptions and types -export * from "./exceptions"; -export * from "./types"; +export * from "./exceptions.js"; +export * from "./types.js"; -import * as channelAccessToken from "./channel-access-token/api"; +import * as channelAccessToken from "./channel-access-token/api.js"; export { channelAccessToken }; -import * as insight from "./insight/api"; +import * as insight from "./insight/api.js"; export { insight }; -import * as liff from "./liff/api"; +import * as liff from "./liff/api.js"; export { liff }; -import * as manageAudience from "./manage-audience/api"; +import * as manageAudience from "./manage-audience/api.js"; export { manageAudience }; -import * as messagingApi from "./messaging-api/api"; +import * as messagingApi from "./messaging-api/api.js"; export { messagingApi }; // Note: `module` is reserved word in Javascript. -import * as moduleOperation from "./module/api"; +import * as moduleOperation from "./module/api.js"; export { moduleOperation }; -import * as moduleAttach from "./module-attach/api"; +import * as moduleAttach from "./module-attach/api.js"; export { moduleAttach }; -import * as shop from "./shop/api"; +import * as shop from "./shop/api.js"; export { shop }; -import * as webhook from "./webhook/api"; +import * as webhook from "./webhook/api.js"; export { webhook }; diff --git a/lib/insight/api.ts b/lib/insight/api.ts index eeedcdab6..ea34fcbaf 100644 --- a/lib/insight/api.ts +++ b/lib/insight/api.ts @@ -1,3 +1,3 @@ // This is the entrypoint for the package -export * from "./api/apis"; -export * from "./model/models"; +export * from "./api/apis.js"; +export * from "./model/models.js"; diff --git a/lib/insight/api/apis.ts b/lib/insight/api/apis.ts index 7dcb8689e..a61959775 100644 --- a/lib/insight/api/apis.ts +++ b/lib/insight/api/apis.ts @@ -1 +1 @@ -export { InsightClient } from "./insightClient"; +export { InsightClient } from "./insightClient.js"; diff --git a/lib/insight/api/insightClient.ts b/lib/insight/api/insightClient.ts index 4fa804762..768f2291b 100644 --- a/lib/insight/api/insightClient.ts +++ b/lib/insight/api/insightClient.ts @@ -11,17 +11,19 @@ */ /* tslint:disable:no-unused-locals */ -import { GetFriendsDemographicsResponse } from "../model/getFriendsDemographicsResponse"; -import { GetMessageEventResponse } from "../model/getMessageEventResponse"; -import { GetNumberOfFollowersResponse } from "../model/getNumberOfFollowersResponse"; -import { GetNumberOfMessageDeliveriesResponse } from "../model/getNumberOfMessageDeliveriesResponse"; -import { GetStatisticsPerUnitResponse } from "../model/getStatisticsPerUnitResponse"; - -import * as Types from "../../types"; -import { ensureJSON } from "../../utils"; +import { GetFriendsDemographicsResponse } from "../model/getFriendsDemographicsResponse.js"; +import { GetMessageEventResponse } from "../model/getMessageEventResponse.js"; +import { GetNumberOfFollowersResponse } from "../model/getNumberOfFollowersResponse.js"; +import { GetNumberOfMessageDeliveriesResponse } from "../model/getNumberOfMessageDeliveriesResponse.js"; +import { GetStatisticsPerUnitResponse } from "../model/getStatisticsPerUnitResponse.js"; + +import * as Types from "../../types.js"; +import { ensureJSON } from "../../utils.js"; import { Readable } from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/lib/insight/model/errorResponse.ts b/lib/insight/model/errorResponse.ts index 8f8c2546e..d90fd4b49 100644 --- a/lib/insight/model/errorResponse.ts +++ b/lib/insight/model/errorResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { ErrorDetail } from "./errorDetail"; +import { ErrorDetail } from "./errorDetail.js"; export type ErrorResponse = { /** diff --git a/lib/insight/model/getFriendsDemographicsResponse.ts b/lib/insight/model/getFriendsDemographicsResponse.ts index 184a64518..bee0ce4df 100644 --- a/lib/insight/model/getFriendsDemographicsResponse.ts +++ b/lib/insight/model/getFriendsDemographicsResponse.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { AgeTile } from "./ageTile"; -import { AppTypeTile } from "./appTypeTile"; -import { AreaTile } from "./areaTile"; -import { GenderTile } from "./genderTile"; -import { SubscriptionPeriodTile } from "./subscriptionPeriodTile"; +import { AgeTile } from "./ageTile.js"; +import { AppTypeTile } from "./appTypeTile.js"; +import { AreaTile } from "./areaTile.js"; +import { GenderTile } from "./genderTile.js"; +import { SubscriptionPeriodTile } from "./subscriptionPeriodTile.js"; /** * Get friend demographics diff --git a/lib/insight/model/getMessageEventResponse.ts b/lib/insight/model/getMessageEventResponse.ts index 6cad5465e..c00869386 100644 --- a/lib/insight/model/getMessageEventResponse.ts +++ b/lib/insight/model/getMessageEventResponse.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { GetMessageEventResponseClick } from "./getMessageEventResponseClick"; -import { GetMessageEventResponseMessage } from "./getMessageEventResponseMessage"; -import { GetMessageEventResponseOverview } from "./getMessageEventResponseOverview"; +import { GetMessageEventResponseClick } from "./getMessageEventResponseClick.js"; +import { GetMessageEventResponseMessage } from "./getMessageEventResponseMessage.js"; +import { GetMessageEventResponseOverview } from "./getMessageEventResponseOverview.js"; /** * Statistics about how users interact with narrowcast messages or broadcast messages sent from your LINE Official Account. diff --git a/lib/insight/model/getStatisticsPerUnitResponse.ts b/lib/insight/model/getStatisticsPerUnitResponse.ts index c901bb435..6158aaf73 100644 --- a/lib/insight/model/getStatisticsPerUnitResponse.ts +++ b/lib/insight/model/getStatisticsPerUnitResponse.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { GetStatisticsPerUnitResponseClick } from "./getStatisticsPerUnitResponseClick"; -import { GetStatisticsPerUnitResponseMessage } from "./getStatisticsPerUnitResponseMessage"; -import { GetStatisticsPerUnitResponseOverview } from "./getStatisticsPerUnitResponseOverview"; +import { GetStatisticsPerUnitResponseClick } from "./getStatisticsPerUnitResponseClick.js"; +import { GetStatisticsPerUnitResponseMessage } from "./getStatisticsPerUnitResponseMessage.js"; +import { GetStatisticsPerUnitResponseOverview } from "./getStatisticsPerUnitResponseOverview.js"; /** * Response object for `get statistics per unit` diff --git a/lib/insight/model/models.ts b/lib/insight/model/models.ts index 86722e0e8..4fcb0a7ae 100644 --- a/lib/insight/model/models.ts +++ b/lib/insight/model/models.ts @@ -1,18 +1,18 @@ -export * from "./ageTile"; -export * from "./appTypeTile"; -export * from "./areaTile"; -export * from "./errorDetail"; -export * from "./errorResponse"; -export * from "./genderTile"; -export * from "./getFriendsDemographicsResponse"; -export * from "./getMessageEventResponse"; -export * from "./getMessageEventResponseClick"; -export * from "./getMessageEventResponseMessage"; -export * from "./getMessageEventResponseOverview"; -export * from "./getNumberOfFollowersResponse"; -export * from "./getNumberOfMessageDeliveriesResponse"; -export * from "./getStatisticsPerUnitResponse"; -export * from "./getStatisticsPerUnitResponseClick"; -export * from "./getStatisticsPerUnitResponseMessage"; -export * from "./getStatisticsPerUnitResponseOverview"; -export * from "./subscriptionPeriodTile"; +export * from "./ageTile.js"; +export * from "./appTypeTile.js"; +export * from "./areaTile.js"; +export * from "./errorDetail.js"; +export * from "./errorResponse.js"; +export * from "./genderTile.js"; +export * from "./getFriendsDemographicsResponse.js"; +export * from "./getMessageEventResponse.js"; +export * from "./getMessageEventResponseClick.js"; +export * from "./getMessageEventResponseMessage.js"; +export * from "./getMessageEventResponseOverview.js"; +export * from "./getNumberOfFollowersResponse.js"; +export * from "./getNumberOfMessageDeliveriesResponse.js"; +export * from "./getStatisticsPerUnitResponse.js"; +export * from "./getStatisticsPerUnitResponseClick.js"; +export * from "./getStatisticsPerUnitResponseMessage.js"; +export * from "./getStatisticsPerUnitResponseOverview.js"; +export * from "./subscriptionPeriodTile.js"; diff --git a/lib/insight/tests/api/InsightClientTest.spec.ts b/lib/insight/tests/api/InsightClientTest.spec.ts index 920c04a63..efbc7b126 100644 --- a/lib/insight/tests/api/InsightClientTest.spec.ts +++ b/lib/insight/tests/api/InsightClientTest.spec.ts @@ -1,14 +1,16 @@ -import { InsightClient } from "../../api"; +import { InsightClient } from "../../api.js"; -import { GetFriendsDemographicsResponse } from "../../model/getFriendsDemographicsResponse"; -import { GetMessageEventResponse } from "../../model/getMessageEventResponse"; -import { GetNumberOfFollowersResponse } from "../../model/getNumberOfFollowersResponse"; -import { GetNumberOfMessageDeliveriesResponse } from "../../model/getNumberOfMessageDeliveriesResponse"; -import { GetStatisticsPerUnitResponse } from "../../model/getStatisticsPerUnitResponse"; +import { GetFriendsDemographicsResponse } from "../../model/getFriendsDemographicsResponse.js"; +import { GetMessageEventResponse } from "../../model/getMessageEventResponse.js"; +import { GetNumberOfFollowersResponse } from "../../model/getNumberOfFollowersResponse.js"; +import { GetNumberOfMessageDeliveriesResponse } from "../../model/getNumberOfMessageDeliveriesResponse.js"; +import { GetStatisticsPerUnitResponse } from "../../model/getStatisticsPerUnitResponse.js"; import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; describe("InsightClient", () => { diff --git a/lib/liff/api.ts b/lib/liff/api.ts index eeedcdab6..ea34fcbaf 100644 --- a/lib/liff/api.ts +++ b/lib/liff/api.ts @@ -1,3 +1,3 @@ // This is the entrypoint for the package -export * from "./api/apis"; -export * from "./model/models"; +export * from "./api/apis.js"; +export * from "./model/models.js"; diff --git a/lib/liff/api/apis.ts b/lib/liff/api/apis.ts index 5aae2e33a..f5d41d3c5 100644 --- a/lib/liff/api/apis.ts +++ b/lib/liff/api/apis.ts @@ -1 +1 @@ -export { LiffClient } from "./liffClient"; +export { LiffClient } from "./liffClient.js"; diff --git a/lib/liff/api/liffClient.ts b/lib/liff/api/liffClient.ts index 810332845..3a8a87fdd 100644 --- a/lib/liff/api/liffClient.ts +++ b/lib/liff/api/liffClient.ts @@ -11,16 +11,18 @@ */ /* tslint:disable:no-unused-locals */ -import { AddLiffAppRequest } from "../model/addLiffAppRequest"; -import { AddLiffAppResponse } from "../model/addLiffAppResponse"; -import { GetAllLiffAppsResponse } from "../model/getAllLiffAppsResponse"; -import { UpdateLiffAppRequest } from "../model/updateLiffAppRequest"; +import { AddLiffAppRequest } from "../model/addLiffAppRequest.js"; +import { AddLiffAppResponse } from "../model/addLiffAppResponse.js"; +import { GetAllLiffAppsResponse } from "../model/getAllLiffAppsResponse.js"; +import { UpdateLiffAppRequest } from "../model/updateLiffAppRequest.js"; -import * as Types from "../../types"; -import { ensureJSON } from "../../utils"; +import * as Types from "../../types.js"; +import { ensureJSON } from "../../utils.js"; import { Readable } from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/lib/liff/model/addLiffAppRequest.ts b/lib/liff/model/addLiffAppRequest.ts index aae1b5d2d..be60cb52e 100644 --- a/lib/liff/model/addLiffAppRequest.ts +++ b/lib/liff/model/addLiffAppRequest.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { LiffBotPrompt } from "./liffBotPrompt"; -import { LiffFeatures } from "./liffFeatures"; -import { LiffScope } from "./liffScope"; -import { LiffView } from "./liffView"; +import { LiffBotPrompt } from "./liffBotPrompt.js"; +import { LiffFeatures } from "./liffFeatures.js"; +import { LiffScope } from "./liffScope.js"; +import { LiffView } from "./liffView.js"; export type AddLiffAppRequest = { /** diff --git a/lib/liff/model/getAllLiffAppsResponse.ts b/lib/liff/model/getAllLiffAppsResponse.ts index e0cbf0c10..6f13e84e6 100644 --- a/lib/liff/model/getAllLiffAppsResponse.ts +++ b/lib/liff/model/getAllLiffAppsResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { LiffApp } from "./liffApp"; +import { LiffApp } from "./liffApp.js"; export type GetAllLiffAppsResponse = { /** diff --git a/lib/liff/model/liffApp.ts b/lib/liff/model/liffApp.ts index 6c51d1709..d47a3a36b 100644 --- a/lib/liff/model/liffApp.ts +++ b/lib/liff/model/liffApp.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { LiffBotPrompt } from "./liffBotPrompt"; -import { LiffFeatures } from "./liffFeatures"; -import { LiffScope } from "./liffScope"; -import { LiffView } from "./liffView"; +import { LiffBotPrompt } from "./liffBotPrompt.js"; +import { LiffFeatures } from "./liffFeatures.js"; +import { LiffScope } from "./liffScope.js"; +import { LiffView } from "./liffView.js"; export type LiffApp = { /** diff --git a/lib/liff/model/models.ts b/lib/liff/model/models.ts index 3ab4beab2..29f33d604 100644 --- a/lib/liff/model/models.ts +++ b/lib/liff/model/models.ts @@ -1,9 +1,9 @@ -export * from "./addLiffAppRequest"; -export * from "./addLiffAppResponse"; -export * from "./getAllLiffAppsResponse"; -export * from "./liffApp"; -export * from "./liffBotPrompt"; -export * from "./liffFeatures"; -export * from "./liffScope"; -export * from "./liffView"; -export * from "./updateLiffAppRequest"; +export * from "./addLiffAppRequest.js"; +export * from "./addLiffAppResponse.js"; +export * from "./getAllLiffAppsResponse.js"; +export * from "./liffApp.js"; +export * from "./liffBotPrompt.js"; +export * from "./liffFeatures.js"; +export * from "./liffScope.js"; +export * from "./liffView.js"; +export * from "./updateLiffAppRequest.js"; diff --git a/lib/liff/model/updateLiffAppRequest.ts b/lib/liff/model/updateLiffAppRequest.ts index 6da3ffe4b..c22e8784a 100644 --- a/lib/liff/model/updateLiffAppRequest.ts +++ b/lib/liff/model/updateLiffAppRequest.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { LiffBotPrompt } from "./liffBotPrompt"; -import { LiffFeatures } from "./liffFeatures"; -import { LiffScope } from "./liffScope"; -import { LiffView } from "./liffView"; +import { LiffBotPrompt } from "./liffBotPrompt.js"; +import { LiffFeatures } from "./liffFeatures.js"; +import { LiffScope } from "./liffScope.js"; +import { LiffView } from "./liffView.js"; export type UpdateLiffAppRequest = { /** diff --git a/lib/liff/tests/api/LiffClientTest.spec.ts b/lib/liff/tests/api/LiffClientTest.spec.ts index 192bc6952..43132b3be 100644 --- a/lib/liff/tests/api/LiffClientTest.spec.ts +++ b/lib/liff/tests/api/LiffClientTest.spec.ts @@ -1,13 +1,15 @@ -import { LiffClient } from "../../api"; +import { LiffClient } from "../../api.js"; -import { AddLiffAppRequest } from "../../model/addLiffAppRequest"; -import { AddLiffAppResponse } from "../../model/addLiffAppResponse"; -import { GetAllLiffAppsResponse } from "../../model/getAllLiffAppsResponse"; -import { UpdateLiffAppRequest } from "../../model/updateLiffAppRequest"; +import { AddLiffAppRequest } from "../../model/addLiffAppRequest.js"; +import { AddLiffAppResponse } from "../../model/addLiffAppResponse.js"; +import { GetAllLiffAppsResponse } from "../../model/getAllLiffAppsResponse.js"; +import { UpdateLiffAppRequest } from "../../model/updateLiffAppRequest.js"; import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; describe("LiffClient", () => { diff --git a/lib/manage-audience/api.ts b/lib/manage-audience/api.ts index eeedcdab6..ea34fcbaf 100644 --- a/lib/manage-audience/api.ts +++ b/lib/manage-audience/api.ts @@ -1,3 +1,3 @@ // This is the entrypoint for the package -export * from "./api/apis"; -export * from "./model/models"; +export * from "./api/apis.js"; +export * from "./model/models.js"; diff --git a/lib/manage-audience/api/apis.ts b/lib/manage-audience/api/apis.ts index 7daef664c..30f4f210f 100644 --- a/lib/manage-audience/api/apis.ts +++ b/lib/manage-audience/api/apis.ts @@ -1,2 +1,2 @@ -export { ManageAudienceClient } from "./manageAudienceClient"; -export { ManageAudienceBlobClient } from "./manageAudienceBlobClient"; +export { ManageAudienceClient } from "./manageAudienceClient.js"; +export { ManageAudienceBlobClient } from "./manageAudienceBlobClient.js"; diff --git a/lib/manage-audience/api/manageAudienceBlobClient.ts b/lib/manage-audience/api/manageAudienceBlobClient.ts index 2fdf5e574..9a8fe9616 100644 --- a/lib/manage-audience/api/manageAudienceBlobClient.ts +++ b/lib/manage-audience/api/manageAudienceBlobClient.ts @@ -11,13 +11,15 @@ */ /* tslint:disable:no-unused-locals */ -import { CreateAudienceGroupResponse } from "../model/createAudienceGroupResponse"; +import { CreateAudienceGroupResponse } from "../model/createAudienceGroupResponse.js"; -import * as Types from "../../types"; -import { ensureJSON } from "../../utils"; +import * as Types from "../../types.js"; +import { ensureJSON } from "../../utils.js"; import { Readable } from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/lib/manage-audience/api/manageAudienceClient.ts b/lib/manage-audience/api/manageAudienceClient.ts index ab305b0a5..37f951771 100644 --- a/lib/manage-audience/api/manageAudienceClient.ts +++ b/lib/manage-audience/api/manageAudienceClient.ts @@ -11,27 +11,29 @@ */ /* tslint:disable:no-unused-locals */ -import { AddAudienceToAudienceGroupRequest } from "../model/addAudienceToAudienceGroupRequest"; -import { AudienceGroupCreateRoute } from "../model/audienceGroupCreateRoute"; -import { AudienceGroupStatus } from "../model/audienceGroupStatus"; -import { CreateAudienceGroupRequest } from "../model/createAudienceGroupRequest"; -import { CreateAudienceGroupResponse } from "../model/createAudienceGroupResponse"; -import { CreateClickBasedAudienceGroupRequest } from "../model/createClickBasedAudienceGroupRequest"; -import { CreateClickBasedAudienceGroupResponse } from "../model/createClickBasedAudienceGroupResponse"; -import { CreateImpBasedAudienceGroupRequest } from "../model/createImpBasedAudienceGroupRequest"; -import { CreateImpBasedAudienceGroupResponse } from "../model/createImpBasedAudienceGroupResponse"; -import { ErrorResponse } from "../model/errorResponse"; -import { GetAudienceDataResponse } from "../model/getAudienceDataResponse"; -import { GetAudienceGroupAuthorityLevelResponse } from "../model/getAudienceGroupAuthorityLevelResponse"; -import { GetAudienceGroupsResponse } from "../model/getAudienceGroupsResponse"; -import { UpdateAudienceGroupAuthorityLevelRequest } from "../model/updateAudienceGroupAuthorityLevelRequest"; -import { UpdateAudienceGroupDescriptionRequest } from "../model/updateAudienceGroupDescriptionRequest"; +import { AddAudienceToAudienceGroupRequest } from "../model/addAudienceToAudienceGroupRequest.js"; +import { AudienceGroupCreateRoute } from "../model/audienceGroupCreateRoute.js"; +import { AudienceGroupStatus } from "../model/audienceGroupStatus.js"; +import { CreateAudienceGroupRequest } from "../model/createAudienceGroupRequest.js"; +import { CreateAudienceGroupResponse } from "../model/createAudienceGroupResponse.js"; +import { CreateClickBasedAudienceGroupRequest } from "../model/createClickBasedAudienceGroupRequest.js"; +import { CreateClickBasedAudienceGroupResponse } from "../model/createClickBasedAudienceGroupResponse.js"; +import { CreateImpBasedAudienceGroupRequest } from "../model/createImpBasedAudienceGroupRequest.js"; +import { CreateImpBasedAudienceGroupResponse } from "../model/createImpBasedAudienceGroupResponse.js"; +import { ErrorResponse } from "../model/errorResponse.js"; +import { GetAudienceDataResponse } from "../model/getAudienceDataResponse.js"; +import { GetAudienceGroupAuthorityLevelResponse } from "../model/getAudienceGroupAuthorityLevelResponse.js"; +import { GetAudienceGroupsResponse } from "../model/getAudienceGroupsResponse.js"; +import { UpdateAudienceGroupAuthorityLevelRequest } from "../model/updateAudienceGroupAuthorityLevelRequest.js"; +import { UpdateAudienceGroupDescriptionRequest } from "../model/updateAudienceGroupDescriptionRequest.js"; -import * as Types from "../../types"; -import { ensureJSON } from "../../utils"; +import * as Types from "../../types.js"; +import { ensureJSON } from "../../utils.js"; import { Readable } from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/lib/manage-audience/model/addAudienceToAudienceGroupRequest.ts b/lib/manage-audience/model/addAudienceToAudienceGroupRequest.ts index 296adde09..83e527c7d 100644 --- a/lib/manage-audience/model/addAudienceToAudienceGroupRequest.ts +++ b/lib/manage-audience/model/addAudienceToAudienceGroupRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Audience } from "./audience"; +import { Audience } from "./audience.js"; /** * Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs (by JSON) diff --git a/lib/manage-audience/model/audienceGroup.ts b/lib/manage-audience/model/audienceGroup.ts index e0595dedb..48246aa0e 100644 --- a/lib/manage-audience/model/audienceGroup.ts +++ b/lib/manage-audience/model/audienceGroup.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { AudienceGroupCreateRoute } from "./audienceGroupCreateRoute"; -import { AudienceGroupFailedType } from "./audienceGroupFailedType"; -import { AudienceGroupPermission } from "./audienceGroupPermission"; -import { AudienceGroupStatus } from "./audienceGroupStatus"; -import { AudienceGroupType } from "./audienceGroupType"; +import { AudienceGroupCreateRoute } from "./audienceGroupCreateRoute.js"; +import { AudienceGroupFailedType } from "./audienceGroupFailedType.js"; +import { AudienceGroupPermission } from "./audienceGroupPermission.js"; +import { AudienceGroupStatus } from "./audienceGroupStatus.js"; +import { AudienceGroupType } from "./audienceGroupType.js"; /** * Audience group diff --git a/lib/manage-audience/model/audienceGroupJob.ts b/lib/manage-audience/model/audienceGroupJob.ts index 2bf7a7a26..d82ca20ef 100644 --- a/lib/manage-audience/model/audienceGroupJob.ts +++ b/lib/manage-audience/model/audienceGroupJob.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { AudienceGroupJobFailedType } from "./audienceGroupJobFailedType"; -import { AudienceGroupJobStatus } from "./audienceGroupJobStatus"; -import { AudienceGroupJobType } from "./audienceGroupJobType"; +import { AudienceGroupJobFailedType } from "./audienceGroupJobFailedType.js"; +import { AudienceGroupJobStatus } from "./audienceGroupJobStatus.js"; +import { AudienceGroupJobType } from "./audienceGroupJobType.js"; /** * Audience group job diff --git a/lib/manage-audience/model/createAudienceGroupRequest.ts b/lib/manage-audience/model/createAudienceGroupRequest.ts index 724078905..db2e45f39 100644 --- a/lib/manage-audience/model/createAudienceGroupRequest.ts +++ b/lib/manage-audience/model/createAudienceGroupRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Audience } from "./audience"; +import { Audience } from "./audience.js"; /** * Create audience for uploading user IDs (by JSON) diff --git a/lib/manage-audience/model/createAudienceGroupResponse.ts b/lib/manage-audience/model/createAudienceGroupResponse.ts index 0697255c3..1d40acb1c 100644 --- a/lib/manage-audience/model/createAudienceGroupResponse.ts +++ b/lib/manage-audience/model/createAudienceGroupResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { AudienceGroupType } from "./audienceGroupType"; +import { AudienceGroupType } from "./audienceGroupType.js"; /** * Create audience for uploading user IDs (by JSON) diff --git a/lib/manage-audience/model/createClickBasedAudienceGroupResponse.ts b/lib/manage-audience/model/createClickBasedAudienceGroupResponse.ts index 4ee7125f2..f3d861651 100644 --- a/lib/manage-audience/model/createClickBasedAudienceGroupResponse.ts +++ b/lib/manage-audience/model/createClickBasedAudienceGroupResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { AudienceGroupType } from "./audienceGroupType"; +import { AudienceGroupType } from "./audienceGroupType.js"; /** * Create audience for click-based retargeting diff --git a/lib/manage-audience/model/createImpBasedAudienceGroupResponse.ts b/lib/manage-audience/model/createImpBasedAudienceGroupResponse.ts index 2f949fd03..02e05b681 100644 --- a/lib/manage-audience/model/createImpBasedAudienceGroupResponse.ts +++ b/lib/manage-audience/model/createImpBasedAudienceGroupResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { AudienceGroupType } from "./audienceGroupType"; +import { AudienceGroupType } from "./audienceGroupType.js"; /** * Create audience for impression-based retargeting diff --git a/lib/manage-audience/model/errorResponse.ts b/lib/manage-audience/model/errorResponse.ts index 3c6763bbe..a0e8fafcf 100644 --- a/lib/manage-audience/model/errorResponse.ts +++ b/lib/manage-audience/model/errorResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { ErrorDetail } from "./errorDetail"; +import { ErrorDetail } from "./errorDetail.js"; export type ErrorResponse = { /** diff --git a/lib/manage-audience/model/getAudienceDataResponse.ts b/lib/manage-audience/model/getAudienceDataResponse.ts index 221536d07..890dea29a 100644 --- a/lib/manage-audience/model/getAudienceDataResponse.ts +++ b/lib/manage-audience/model/getAudienceDataResponse.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { AudienceGroup } from "./audienceGroup"; -import { AudienceGroupJob } from "./audienceGroupJob"; +import { AudienceGroup } from "./audienceGroup.js"; +import { AudienceGroupJob } from "./audienceGroupJob.js"; /** * Get audience data diff --git a/lib/manage-audience/model/getAudienceGroupAuthorityLevelResponse.ts b/lib/manage-audience/model/getAudienceGroupAuthorityLevelResponse.ts index 35f203824..d340d1fa6 100644 --- a/lib/manage-audience/model/getAudienceGroupAuthorityLevelResponse.ts +++ b/lib/manage-audience/model/getAudienceGroupAuthorityLevelResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { AudienceGroupAuthorityLevel } from "./audienceGroupAuthorityLevel"; +import { AudienceGroupAuthorityLevel } from "./audienceGroupAuthorityLevel.js"; /** * Get the authority level of the audience diff --git a/lib/manage-audience/model/getAudienceGroupsResponse.ts b/lib/manage-audience/model/getAudienceGroupsResponse.ts index 7307e811f..19439f240 100644 --- a/lib/manage-audience/model/getAudienceGroupsResponse.ts +++ b/lib/manage-audience/model/getAudienceGroupsResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { AudienceGroup } from "./audienceGroup"; +import { AudienceGroup } from "./audienceGroup.js"; /** * Gets data for more than one audience. diff --git a/lib/manage-audience/model/models.ts b/lib/manage-audience/model/models.ts index 7fd0566c7..b54782c72 100644 --- a/lib/manage-audience/model/models.ts +++ b/lib/manage-audience/model/models.ts @@ -1,26 +1,26 @@ -export * from "./addAudienceToAudienceGroupRequest"; -export * from "./audience"; -export * from "./audienceGroup"; -export * from "./audienceGroupAuthorityLevel"; -export * from "./audienceGroupCreateRoute"; -export * from "./audienceGroupFailedType"; -export * from "./audienceGroupJob"; -export * from "./audienceGroupJobFailedType"; -export * from "./audienceGroupJobStatus"; -export * from "./audienceGroupJobType"; -export * from "./audienceGroupPermission"; -export * from "./audienceGroupStatus"; -export * from "./audienceGroupType"; -export * from "./createAudienceGroupRequest"; -export * from "./createAudienceGroupResponse"; -export * from "./createClickBasedAudienceGroupRequest"; -export * from "./createClickBasedAudienceGroupResponse"; -export * from "./createImpBasedAudienceGroupRequest"; -export * from "./createImpBasedAudienceGroupResponse"; -export * from "./errorDetail"; -export * from "./errorResponse"; -export * from "./getAudienceDataResponse"; -export * from "./getAudienceGroupAuthorityLevelResponse"; -export * from "./getAudienceGroupsResponse"; -export * from "./updateAudienceGroupAuthorityLevelRequest"; -export * from "./updateAudienceGroupDescriptionRequest"; +export * from "./addAudienceToAudienceGroupRequest.js"; +export * from "./audience.js"; +export * from "./audienceGroup.js"; +export * from "./audienceGroupAuthorityLevel.js"; +export * from "./audienceGroupCreateRoute.js"; +export * from "./audienceGroupFailedType.js"; +export * from "./audienceGroupJob.js"; +export * from "./audienceGroupJobFailedType.js"; +export * from "./audienceGroupJobStatus.js"; +export * from "./audienceGroupJobType.js"; +export * from "./audienceGroupPermission.js"; +export * from "./audienceGroupStatus.js"; +export * from "./audienceGroupType.js"; +export * from "./createAudienceGroupRequest.js"; +export * from "./createAudienceGroupResponse.js"; +export * from "./createClickBasedAudienceGroupRequest.js"; +export * from "./createClickBasedAudienceGroupResponse.js"; +export * from "./createImpBasedAudienceGroupRequest.js"; +export * from "./createImpBasedAudienceGroupResponse.js"; +export * from "./errorDetail.js"; +export * from "./errorResponse.js"; +export * from "./getAudienceDataResponse.js"; +export * from "./getAudienceGroupAuthorityLevelResponse.js"; +export * from "./getAudienceGroupsResponse.js"; +export * from "./updateAudienceGroupAuthorityLevelRequest.js"; +export * from "./updateAudienceGroupDescriptionRequest.js"; diff --git a/lib/manage-audience/model/updateAudienceGroupAuthorityLevelRequest.ts b/lib/manage-audience/model/updateAudienceGroupAuthorityLevelRequest.ts index 2879db757..bdab03953 100644 --- a/lib/manage-audience/model/updateAudienceGroupAuthorityLevelRequest.ts +++ b/lib/manage-audience/model/updateAudienceGroupAuthorityLevelRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { AudienceGroupAuthorityLevel } from "./audienceGroupAuthorityLevel"; +import { AudienceGroupAuthorityLevel } from "./audienceGroupAuthorityLevel.js"; /** * Change the authority level of the audience diff --git a/lib/manage-audience/tests/api/ManageAudienceBlobClientTest.spec.ts b/lib/manage-audience/tests/api/ManageAudienceBlobClientTest.spec.ts index 05bd67a7f..a5df33c2d 100644 --- a/lib/manage-audience/tests/api/ManageAudienceBlobClientTest.spec.ts +++ b/lib/manage-audience/tests/api/ManageAudienceBlobClientTest.spec.ts @@ -1,10 +1,12 @@ -import { ManageAudienceBlobClient } from "../../api"; +import { ManageAudienceBlobClient } from "../../api.js"; -import { CreateAudienceGroupResponse } from "../../model/createAudienceGroupResponse"; +import { CreateAudienceGroupResponse } from "../../model/createAudienceGroupResponse.js"; import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; describe("ManageAudienceBlobClient", () => { diff --git a/lib/manage-audience/tests/api/ManageAudienceClientTest.spec.ts b/lib/manage-audience/tests/api/ManageAudienceClientTest.spec.ts index c42077d8a..a0f6d269f 100644 --- a/lib/manage-audience/tests/api/ManageAudienceClientTest.spec.ts +++ b/lib/manage-audience/tests/api/ManageAudienceClientTest.spec.ts @@ -1,24 +1,26 @@ -import { ManageAudienceClient } from "../../api"; - -import { AddAudienceToAudienceGroupRequest } from "../../model/addAudienceToAudienceGroupRequest"; -import { AudienceGroupCreateRoute } from "../../model/audienceGroupCreateRoute"; -import { AudienceGroupStatus } from "../../model/audienceGroupStatus"; -import { CreateAudienceGroupRequest } from "../../model/createAudienceGroupRequest"; -import { CreateAudienceGroupResponse } from "../../model/createAudienceGroupResponse"; -import { CreateClickBasedAudienceGroupRequest } from "../../model/createClickBasedAudienceGroupRequest"; -import { CreateClickBasedAudienceGroupResponse } from "../../model/createClickBasedAudienceGroupResponse"; -import { CreateImpBasedAudienceGroupRequest } from "../../model/createImpBasedAudienceGroupRequest"; -import { CreateImpBasedAudienceGroupResponse } from "../../model/createImpBasedAudienceGroupResponse"; -import { ErrorResponse } from "../../model/errorResponse"; -import { GetAudienceDataResponse } from "../../model/getAudienceDataResponse"; -import { GetAudienceGroupAuthorityLevelResponse } from "../../model/getAudienceGroupAuthorityLevelResponse"; -import { GetAudienceGroupsResponse } from "../../model/getAudienceGroupsResponse"; -import { UpdateAudienceGroupAuthorityLevelRequest } from "../../model/updateAudienceGroupAuthorityLevelRequest"; -import { UpdateAudienceGroupDescriptionRequest } from "../../model/updateAudienceGroupDescriptionRequest"; +import { ManageAudienceClient } from "../../api.js"; + +import { AddAudienceToAudienceGroupRequest } from "../../model/addAudienceToAudienceGroupRequest.js"; +import { AudienceGroupCreateRoute } from "../../model/audienceGroupCreateRoute.js"; +import { AudienceGroupStatus } from "../../model/audienceGroupStatus.js"; +import { CreateAudienceGroupRequest } from "../../model/createAudienceGroupRequest.js"; +import { CreateAudienceGroupResponse } from "../../model/createAudienceGroupResponse.js"; +import { CreateClickBasedAudienceGroupRequest } from "../../model/createClickBasedAudienceGroupRequest.js"; +import { CreateClickBasedAudienceGroupResponse } from "../../model/createClickBasedAudienceGroupResponse.js"; +import { CreateImpBasedAudienceGroupRequest } from "../../model/createImpBasedAudienceGroupRequest.js"; +import { CreateImpBasedAudienceGroupResponse } from "../../model/createImpBasedAudienceGroupResponse.js"; +import { ErrorResponse } from "../../model/errorResponse.js"; +import { GetAudienceDataResponse } from "../../model/getAudienceDataResponse.js"; +import { GetAudienceGroupAuthorityLevelResponse } from "../../model/getAudienceGroupAuthorityLevelResponse.js"; +import { GetAudienceGroupsResponse } from "../../model/getAudienceGroupsResponse.js"; +import { UpdateAudienceGroupAuthorityLevelRequest } from "../../model/updateAudienceGroupAuthorityLevelRequest.js"; +import { UpdateAudienceGroupDescriptionRequest } from "../../model/updateAudienceGroupDescriptionRequest.js"; import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; describe("ManageAudienceClient", () => { diff --git a/lib/messaging-api/api.ts b/lib/messaging-api/api.ts index eeedcdab6..ea34fcbaf 100644 --- a/lib/messaging-api/api.ts +++ b/lib/messaging-api/api.ts @@ -1,3 +1,3 @@ // This is the entrypoint for the package -export * from "./api/apis"; -export * from "./model/models"; +export * from "./api/apis.js"; +export * from "./model/models.js"; diff --git a/lib/messaging-api/api/apis.ts b/lib/messaging-api/api/apis.ts index fe311f03a..11b64b943 100644 --- a/lib/messaging-api/api/apis.ts +++ b/lib/messaging-api/api/apis.ts @@ -1,2 +1,2 @@ -export { MessagingApiClient } from "./messagingApiClient"; -export { MessagingApiBlobClient } from "./messagingApiBlobClient"; +export { MessagingApiClient } from "./messagingApiClient.js"; +export { MessagingApiBlobClient } from "./messagingApiBlobClient.js"; diff --git a/lib/messaging-api/api/messagingApiBlobClient.ts b/lib/messaging-api/api/messagingApiBlobClient.ts index ee461015f..f3f610705 100644 --- a/lib/messaging-api/api/messagingApiBlobClient.ts +++ b/lib/messaging-api/api/messagingApiBlobClient.ts @@ -11,13 +11,15 @@ */ /* tslint:disable:no-unused-locals */ -import { GetMessageContentTranscodingResponse } from "../model/getMessageContentTranscodingResponse"; +import { GetMessageContentTranscodingResponse } from "../model/getMessageContentTranscodingResponse.js"; -import * as Types from "../../types"; -import { ensureJSON } from "../../utils"; +import * as Types from "../../types.js"; +import { ensureJSON } from "../../utils.js"; import { Readable } from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/lib/messaging-api/api/messagingApiClient.ts b/lib/messaging-api/api/messagingApiClient.ts index aa81d7513..f421ae7f6 100644 --- a/lib/messaging-api/api/messagingApiClient.ts +++ b/lib/messaging-api/api/messagingApiClient.ts @@ -11,56 +11,58 @@ */ /* tslint:disable:no-unused-locals */ -import { AudienceMatchMessagesRequest } from "../model/audienceMatchMessagesRequest"; -import { BotInfoResponse } from "../model/botInfoResponse"; -import { BroadcastRequest } from "../model/broadcastRequest"; -import { CreateRichMenuAliasRequest } from "../model/createRichMenuAliasRequest"; -import { ErrorResponse } from "../model/errorResponse"; -import { GetAggregationUnitNameListResponse } from "../model/getAggregationUnitNameListResponse"; -import { GetAggregationUnitUsageResponse } from "../model/getAggregationUnitUsageResponse"; -import { GetFollowersResponse } from "../model/getFollowersResponse"; -import { GetWebhookEndpointResponse } from "../model/getWebhookEndpointResponse"; -import { GroupMemberCountResponse } from "../model/groupMemberCountResponse"; -import { GroupSummaryResponse } from "../model/groupSummaryResponse"; -import { GroupUserProfileResponse } from "../model/groupUserProfileResponse"; -import { IssueLinkTokenResponse } from "../model/issueLinkTokenResponse"; -import { MarkMessagesAsReadRequest } from "../model/markMessagesAsReadRequest"; -import { MembersIdsResponse } from "../model/membersIdsResponse"; -import { MessageQuotaResponse } from "../model/messageQuotaResponse"; -import { MulticastRequest } from "../model/multicastRequest"; -import { NarrowcastProgressResponse } from "../model/narrowcastProgressResponse"; -import { NarrowcastRequest } from "../model/narrowcastRequest"; -import { NumberOfMessagesResponse } from "../model/numberOfMessagesResponse"; -import { PnpMessagesRequest } from "../model/pnpMessagesRequest"; -import { PushMessageRequest } from "../model/pushMessageRequest"; -import { PushMessageResponse } from "../model/pushMessageResponse"; -import { QuotaConsumptionResponse } from "../model/quotaConsumptionResponse"; -import { ReplyMessageRequest } from "../model/replyMessageRequest"; -import { ReplyMessageResponse } from "../model/replyMessageResponse"; -import { RichMenuAliasListResponse } from "../model/richMenuAliasListResponse"; -import { RichMenuAliasResponse } from "../model/richMenuAliasResponse"; -import { RichMenuBatchProgressResponse } from "../model/richMenuBatchProgressResponse"; -import { RichMenuBatchRequest } from "../model/richMenuBatchRequest"; -import { RichMenuBulkLinkRequest } from "../model/richMenuBulkLinkRequest"; -import { RichMenuBulkUnlinkRequest } from "../model/richMenuBulkUnlinkRequest"; -import { RichMenuIdResponse } from "../model/richMenuIdResponse"; -import { RichMenuListResponse } from "../model/richMenuListResponse"; -import { RichMenuRequest } from "../model/richMenuRequest"; -import { RichMenuResponse } from "../model/richMenuResponse"; -import { RoomMemberCountResponse } from "../model/roomMemberCountResponse"; -import { RoomUserProfileResponse } from "../model/roomUserProfileResponse"; -import { SetWebhookEndpointRequest } from "../model/setWebhookEndpointRequest"; -import { TestWebhookEndpointRequest } from "../model/testWebhookEndpointRequest"; -import { TestWebhookEndpointResponse } from "../model/testWebhookEndpointResponse"; -import { UpdateRichMenuAliasRequest } from "../model/updateRichMenuAliasRequest"; -import { UserProfileResponse } from "../model/userProfileResponse"; -import { ValidateMessageRequest } from "../model/validateMessageRequest"; - -import * as Types from "../../types"; -import { ensureJSON } from "../../utils"; +import { AudienceMatchMessagesRequest } from "../model/audienceMatchMessagesRequest.js"; +import { BotInfoResponse } from "../model/botInfoResponse.js"; +import { BroadcastRequest } from "../model/broadcastRequest.js"; +import { CreateRichMenuAliasRequest } from "../model/createRichMenuAliasRequest.js"; +import { ErrorResponse } from "../model/errorResponse.js"; +import { GetAggregationUnitNameListResponse } from "../model/getAggregationUnitNameListResponse.js"; +import { GetAggregationUnitUsageResponse } from "../model/getAggregationUnitUsageResponse.js"; +import { GetFollowersResponse } from "../model/getFollowersResponse.js"; +import { GetWebhookEndpointResponse } from "../model/getWebhookEndpointResponse.js"; +import { GroupMemberCountResponse } from "../model/groupMemberCountResponse.js"; +import { GroupSummaryResponse } from "../model/groupSummaryResponse.js"; +import { GroupUserProfileResponse } from "../model/groupUserProfileResponse.js"; +import { IssueLinkTokenResponse } from "../model/issueLinkTokenResponse.js"; +import { MarkMessagesAsReadRequest } from "../model/markMessagesAsReadRequest.js"; +import { MembersIdsResponse } from "../model/membersIdsResponse.js"; +import { MessageQuotaResponse } from "../model/messageQuotaResponse.js"; +import { MulticastRequest } from "../model/multicastRequest.js"; +import { NarrowcastProgressResponse } from "../model/narrowcastProgressResponse.js"; +import { NarrowcastRequest } from "../model/narrowcastRequest.js"; +import { NumberOfMessagesResponse } from "../model/numberOfMessagesResponse.js"; +import { PnpMessagesRequest } from "../model/pnpMessagesRequest.js"; +import { PushMessageRequest } from "../model/pushMessageRequest.js"; +import { PushMessageResponse } from "../model/pushMessageResponse.js"; +import { QuotaConsumptionResponse } from "../model/quotaConsumptionResponse.js"; +import { ReplyMessageRequest } from "../model/replyMessageRequest.js"; +import { ReplyMessageResponse } from "../model/replyMessageResponse.js"; +import { RichMenuAliasListResponse } from "../model/richMenuAliasListResponse.js"; +import { RichMenuAliasResponse } from "../model/richMenuAliasResponse.js"; +import { RichMenuBatchProgressResponse } from "../model/richMenuBatchProgressResponse.js"; +import { RichMenuBatchRequest } from "../model/richMenuBatchRequest.js"; +import { RichMenuBulkLinkRequest } from "../model/richMenuBulkLinkRequest.js"; +import { RichMenuBulkUnlinkRequest } from "../model/richMenuBulkUnlinkRequest.js"; +import { RichMenuIdResponse } from "../model/richMenuIdResponse.js"; +import { RichMenuListResponse } from "../model/richMenuListResponse.js"; +import { RichMenuRequest } from "../model/richMenuRequest.js"; +import { RichMenuResponse } from "../model/richMenuResponse.js"; +import { RoomMemberCountResponse } from "../model/roomMemberCountResponse.js"; +import { RoomUserProfileResponse } from "../model/roomUserProfileResponse.js"; +import { SetWebhookEndpointRequest } from "../model/setWebhookEndpointRequest.js"; +import { TestWebhookEndpointRequest } from "../model/testWebhookEndpointRequest.js"; +import { TestWebhookEndpointResponse } from "../model/testWebhookEndpointResponse.js"; +import { UpdateRichMenuAliasRequest } from "../model/updateRichMenuAliasRequest.js"; +import { UserProfileResponse } from "../model/userProfileResponse.js"; +import { ValidateMessageRequest } from "../model/validateMessageRequest.js"; + +import * as Types from "../../types.js"; +import { ensureJSON } from "../../utils.js"; import { Readable } from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/lib/messaging-api/model/action.ts b/lib/messaging-api/model/action.ts index 8b6a98c35..d03217626 100644 --- a/lib/messaging-api/model/action.ts +++ b/lib/messaging-api/model/action.ts @@ -10,15 +10,15 @@ * Do not edit the class manually. */ -import { CameraAction } from "./models"; -import { CameraRollAction } from "./models"; -import { ClipboardAction } from "./models"; -import { DatetimePickerAction } from "./models"; -import { LocationAction } from "./models"; -import { MessageAction } from "./models"; -import { PostbackAction } from "./models"; -import { RichMenuSwitchAction } from "./models"; -import { URIAction } from "./models"; +import { CameraAction } from "./models.js"; +import { CameraRollAction } from "./models.js"; +import { ClipboardAction } from "./models.js"; +import { DatetimePickerAction } from "./models.js"; +import { LocationAction } from "./models.js"; +import { MessageAction } from "./models.js"; +import { PostbackAction } from "./models.js"; +import { RichMenuSwitchAction } from "./models.js"; +import { URIAction } from "./models.js"; export type Action = | CameraAction // camera diff --git a/lib/messaging-api/model/ageDemographicFilter.ts b/lib/messaging-api/model/ageDemographicFilter.ts index 983d33aa5..3855532f3 100644 --- a/lib/messaging-api/model/ageDemographicFilter.ts +++ b/lib/messaging-api/model/ageDemographicFilter.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { AgeDemographic } from "./ageDemographic"; -import { DemographicFilter } from "./demographicFilter"; +import { AgeDemographic } from "./ageDemographic.js"; +import { DemographicFilter } from "./demographicFilter.js"; -import { DemographicFilterBase } from "./models"; +import { DemographicFilterBase } from "./models.js"; export type AgeDemographicFilter = DemographicFilterBase & { type: "age"; diff --git a/lib/messaging-api/model/appTypeDemographicFilter.ts b/lib/messaging-api/model/appTypeDemographicFilter.ts index f2cd486ae..d63e73f9d 100644 --- a/lib/messaging-api/model/appTypeDemographicFilter.ts +++ b/lib/messaging-api/model/appTypeDemographicFilter.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { AppTypeDemographic } from "./appTypeDemographic"; -import { DemographicFilter } from "./demographicFilter"; +import { AppTypeDemographic } from "./appTypeDemographic.js"; +import { DemographicFilter } from "./demographicFilter.js"; -import { DemographicFilterBase } from "./models"; +import { DemographicFilterBase } from "./models.js"; export type AppTypeDemographicFilter = DemographicFilterBase & { type: "appType"; diff --git a/lib/messaging-api/model/areaDemographicFilter.ts b/lib/messaging-api/model/areaDemographicFilter.ts index 5fd608295..7aa36ab16 100644 --- a/lib/messaging-api/model/areaDemographicFilter.ts +++ b/lib/messaging-api/model/areaDemographicFilter.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { AreaDemographic } from "./areaDemographic"; -import { DemographicFilter } from "./demographicFilter"; +import { AreaDemographic } from "./areaDemographic.js"; +import { DemographicFilter } from "./demographicFilter.js"; -import { DemographicFilterBase } from "./models"; +import { DemographicFilterBase } from "./models.js"; export type AreaDemographicFilter = DemographicFilterBase & { type: "area"; diff --git a/lib/messaging-api/model/audienceMatchMessagesRequest.ts b/lib/messaging-api/model/audienceMatchMessagesRequest.ts index fd56fa7ce..7644d5f1e 100644 --- a/lib/messaging-api/model/audienceMatchMessagesRequest.ts +++ b/lib/messaging-api/model/audienceMatchMessagesRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Message } from "./message"; +import { Message } from "./message.js"; export type AudienceMatchMessagesRequest = { /** diff --git a/lib/messaging-api/model/audienceRecipient.ts b/lib/messaging-api/model/audienceRecipient.ts index 9881f4ddd..456ad81f9 100644 --- a/lib/messaging-api/model/audienceRecipient.ts +++ b/lib/messaging-api/model/audienceRecipient.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Recipient } from "./recipient"; +import { Recipient } from "./recipient.js"; -import { RecipientBase } from "./models"; +import { RecipientBase } from "./models.js"; export type AudienceRecipient = RecipientBase & { type: "audience"; diff --git a/lib/messaging-api/model/audioMessage.ts b/lib/messaging-api/model/audioMessage.ts index 1c624f6e1..1114dc0f5 100644 --- a/lib/messaging-api/model/audioMessage.ts +++ b/lib/messaging-api/model/audioMessage.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { Message } from "./message"; -import { QuickReply } from "./quickReply"; -import { Sender } from "./sender"; +import { Message } from "./message.js"; +import { QuickReply } from "./quickReply.js"; +import { Sender } from "./sender.js"; -import { MessageBase } from "./models"; +import { MessageBase } from "./models.js"; export type AudioMessage = MessageBase & { type: "audio"; diff --git a/lib/messaging-api/model/broadcastRequest.ts b/lib/messaging-api/model/broadcastRequest.ts index 698542eb3..14d48949d 100644 --- a/lib/messaging-api/model/broadcastRequest.ts +++ b/lib/messaging-api/model/broadcastRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Message } from "./message"; +import { Message } from "./message.js"; export type BroadcastRequest = { /** diff --git a/lib/messaging-api/model/buttonsTemplate.ts b/lib/messaging-api/model/buttonsTemplate.ts index d593923b4..31f16a8d0 100644 --- a/lib/messaging-api/model/buttonsTemplate.ts +++ b/lib/messaging-api/model/buttonsTemplate.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { Action } from "./action"; -import { Template } from "./template"; +import { Action } from "./action.js"; +import { Template } from "./template.js"; -import { TemplateBase } from "./models"; +import { TemplateBase } from "./models.js"; export type ButtonsTemplate = TemplateBase & { type: "buttons"; diff --git a/lib/messaging-api/model/cameraAction.ts b/lib/messaging-api/model/cameraAction.ts index 66ea11744..347266492 100644 --- a/lib/messaging-api/model/cameraAction.ts +++ b/lib/messaging-api/model/cameraAction.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; -import { ActionBase } from "./models"; +import { ActionBase } from "./models.js"; export type CameraAction = ActionBase & { type: "camera"; diff --git a/lib/messaging-api/model/cameraRollAction.ts b/lib/messaging-api/model/cameraRollAction.ts index 34cd5e8f7..e6ba0f995 100644 --- a/lib/messaging-api/model/cameraRollAction.ts +++ b/lib/messaging-api/model/cameraRollAction.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; -import { ActionBase } from "./models"; +import { ActionBase } from "./models.js"; export type CameraRollAction = ActionBase & { type: "cameraRoll"; diff --git a/lib/messaging-api/model/carouselColumn.ts b/lib/messaging-api/model/carouselColumn.ts index a667a3ae8..606f4b9c9 100644 --- a/lib/messaging-api/model/carouselColumn.ts +++ b/lib/messaging-api/model/carouselColumn.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; /** * Column object for carousel template. diff --git a/lib/messaging-api/model/carouselTemplate.ts b/lib/messaging-api/model/carouselTemplate.ts index 4d199bada..76864121a 100644 --- a/lib/messaging-api/model/carouselTemplate.ts +++ b/lib/messaging-api/model/carouselTemplate.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { CarouselColumn } from "./carouselColumn"; -import { Template } from "./template"; +import { CarouselColumn } from "./carouselColumn.js"; +import { Template } from "./template.js"; -import { TemplateBase } from "./models"; +import { TemplateBase } from "./models.js"; export type CarouselTemplate = TemplateBase & { type: "carousel"; diff --git a/lib/messaging-api/model/clipboardAction.ts b/lib/messaging-api/model/clipboardAction.ts index d5361cbf8..b9b014aba 100644 --- a/lib/messaging-api/model/clipboardAction.ts +++ b/lib/messaging-api/model/clipboardAction.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; -import { ActionBase } from "./models"; +import { ActionBase } from "./models.js"; export type ClipboardAction = ActionBase & { type: "clipboard"; diff --git a/lib/messaging-api/model/clipboardImagemapAction.ts b/lib/messaging-api/model/clipboardImagemapAction.ts index b3ce632ec..35afd5c9f 100644 --- a/lib/messaging-api/model/clipboardImagemapAction.ts +++ b/lib/messaging-api/model/clipboardImagemapAction.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { ImagemapAction } from "./imagemapAction"; -import { ImagemapArea } from "./imagemapArea"; +import { ImagemapAction } from "./imagemapAction.js"; +import { ImagemapArea } from "./imagemapArea.js"; -import { ImagemapActionBase } from "./models"; +import { ImagemapActionBase } from "./models.js"; export type ClipboardImagemapAction = ImagemapActionBase & { type: "clipboard"; diff --git a/lib/messaging-api/model/confirmTemplate.ts b/lib/messaging-api/model/confirmTemplate.ts index 94ef258a7..11a76cdf9 100644 --- a/lib/messaging-api/model/confirmTemplate.ts +++ b/lib/messaging-api/model/confirmTemplate.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { Action } from "./action"; -import { Template } from "./template"; +import { Action } from "./action.js"; +import { Template } from "./template.js"; -import { TemplateBase } from "./models"; +import { TemplateBase } from "./models.js"; export type ConfirmTemplate = TemplateBase & { type: "confirm"; diff --git a/lib/messaging-api/model/datetimePickerAction.ts b/lib/messaging-api/model/datetimePickerAction.ts index 92130914a..7764d4bdf 100644 --- a/lib/messaging-api/model/datetimePickerAction.ts +++ b/lib/messaging-api/model/datetimePickerAction.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; -import { ActionBase } from "./models"; +import { ActionBase } from "./models.js"; export type DatetimePickerAction = ActionBase & { type: "datetimepicker"; diff --git a/lib/messaging-api/model/demographicFilter.ts b/lib/messaging-api/model/demographicFilter.ts index 63502a869..8f40af607 100644 --- a/lib/messaging-api/model/demographicFilter.ts +++ b/lib/messaging-api/model/demographicFilter.ts @@ -10,12 +10,12 @@ * Do not edit the class manually. */ -import { AgeDemographicFilter } from "./models"; -import { AppTypeDemographicFilter } from "./models"; -import { AreaDemographicFilter } from "./models"; -import { GenderDemographicFilter } from "./models"; -import { OperatorDemographicFilter } from "./models"; -import { SubscriptionPeriodDemographicFilter } from "./models"; +import { AgeDemographicFilter } from "./models.js"; +import { AppTypeDemographicFilter } from "./models.js"; +import { AreaDemographicFilter } from "./models.js"; +import { GenderDemographicFilter } from "./models.js"; +import { OperatorDemographicFilter } from "./models.js"; +import { SubscriptionPeriodDemographicFilter } from "./models.js"; export type DemographicFilter = | AgeDemographicFilter // age diff --git a/lib/messaging-api/model/errorResponse.ts b/lib/messaging-api/model/errorResponse.ts index 897443ce9..cb9fcb4f2 100644 --- a/lib/messaging-api/model/errorResponse.ts +++ b/lib/messaging-api/model/errorResponse.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { ErrorDetail } from "./errorDetail"; -import { SentMessage } from "./sentMessage"; +import { ErrorDetail } from "./errorDetail.js"; +import { SentMessage } from "./sentMessage.js"; export type ErrorResponse = { /** diff --git a/lib/messaging-api/model/filter.ts b/lib/messaging-api/model/filter.ts index cc7376520..253890fc4 100644 --- a/lib/messaging-api/model/filter.ts +++ b/lib/messaging-api/model/filter.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { DemographicFilter } from "./demographicFilter"; +import { DemographicFilter } from "./demographicFilter.js"; /** * Filter for narrowcast diff --git a/lib/messaging-api/model/flexBox.ts b/lib/messaging-api/model/flexBox.ts index f5fefa259..a58d6020c 100644 --- a/lib/messaging-api/model/flexBox.ts +++ b/lib/messaging-api/model/flexBox.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { Action } from "./action"; -import { FlexBoxBackground } from "./flexBoxBackground"; -import { FlexComponent } from "./flexComponent"; +import { Action } from "./action.js"; +import { FlexBoxBackground } from "./flexBoxBackground.js"; +import { FlexComponent } from "./flexComponent.js"; -import { FlexComponentBase } from "./models"; +import { FlexComponentBase } from "./models.js"; export type FlexBox = FlexComponentBase & { type: "box"; diff --git a/lib/messaging-api/model/flexBoxBackground.ts b/lib/messaging-api/model/flexBoxBackground.ts index d3a9ae4be..101becd95 100644 --- a/lib/messaging-api/model/flexBoxBackground.ts +++ b/lib/messaging-api/model/flexBoxBackground.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { FlexBoxLinearGradient } from "./models"; +import { FlexBoxLinearGradient } from "./models.js"; export type FlexBoxBackground = | FlexBoxLinearGradient // linearGradient diff --git a/lib/messaging-api/model/flexBoxLinearGradient.ts b/lib/messaging-api/model/flexBoxLinearGradient.ts index 57f15af24..ae3f27505 100644 --- a/lib/messaging-api/model/flexBoxLinearGradient.ts +++ b/lib/messaging-api/model/flexBoxLinearGradient.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { FlexBoxBackground } from "./flexBoxBackground"; +import { FlexBoxBackground } from "./flexBoxBackground.js"; -import { FlexBoxBackgroundBase } from "./models"; +import { FlexBoxBackgroundBase } from "./models.js"; export type FlexBoxLinearGradient = FlexBoxBackgroundBase & { type: "linearGradient"; diff --git a/lib/messaging-api/model/flexBubble.ts b/lib/messaging-api/model/flexBubble.ts index 191dc1fb9..bfb5c6354 100644 --- a/lib/messaging-api/model/flexBubble.ts +++ b/lib/messaging-api/model/flexBubble.ts @@ -10,13 +10,13 @@ * Do not edit the class manually. */ -import { Action } from "./action"; -import { FlexBox } from "./flexBox"; -import { FlexBubbleStyles } from "./flexBubbleStyles"; -import { FlexComponent } from "./flexComponent"; -import { FlexContainer } from "./flexContainer"; +import { Action } from "./action.js"; +import { FlexBox } from "./flexBox.js"; +import { FlexBubbleStyles } from "./flexBubbleStyles.js"; +import { FlexComponent } from "./flexComponent.js"; +import { FlexContainer } from "./flexContainer.js"; -import { FlexContainerBase } from "./models"; +import { FlexContainerBase } from "./models.js"; export type FlexBubble = FlexContainerBase & { type: "bubble"; diff --git a/lib/messaging-api/model/flexBubbleStyles.ts b/lib/messaging-api/model/flexBubbleStyles.ts index b09c5d4e9..eb559734a 100644 --- a/lib/messaging-api/model/flexBubbleStyles.ts +++ b/lib/messaging-api/model/flexBubbleStyles.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { FlexBlockStyle } from "./flexBlockStyle"; +import { FlexBlockStyle } from "./flexBlockStyle.js"; export type FlexBubbleStyles = { /** diff --git a/lib/messaging-api/model/flexButton.ts b/lib/messaging-api/model/flexButton.ts index c87ec37e6..155199d6d 100644 --- a/lib/messaging-api/model/flexButton.ts +++ b/lib/messaging-api/model/flexButton.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { Action } from "./action"; -import { FlexComponent } from "./flexComponent"; +import { Action } from "./action.js"; +import { FlexComponent } from "./flexComponent.js"; -import { FlexComponentBase } from "./models"; +import { FlexComponentBase } from "./models.js"; export type FlexButton = FlexComponentBase & { type: "button"; diff --git a/lib/messaging-api/model/flexCarousel.ts b/lib/messaging-api/model/flexCarousel.ts index 250c31235..7eff23827 100644 --- a/lib/messaging-api/model/flexCarousel.ts +++ b/lib/messaging-api/model/flexCarousel.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { FlexBubble } from "./flexBubble"; -import { FlexContainer } from "./flexContainer"; +import { FlexBubble } from "./flexBubble.js"; +import { FlexContainer } from "./flexContainer.js"; -import { FlexContainerBase } from "./models"; +import { FlexContainerBase } from "./models.js"; export type FlexCarousel = FlexContainerBase & { type: "carousel"; diff --git a/lib/messaging-api/model/flexComponent.ts b/lib/messaging-api/model/flexComponent.ts index e24a841e8..5fe658d9b 100644 --- a/lib/messaging-api/model/flexComponent.ts +++ b/lib/messaging-api/model/flexComponent.ts @@ -10,15 +10,15 @@ * Do not edit the class manually. */ -import { FlexBox } from "./models"; -import { FlexButton } from "./models"; -import { FlexFiller } from "./models"; -import { FlexIcon } from "./models"; -import { FlexImage } from "./models"; -import { FlexSeparator } from "./models"; -import { FlexSpan } from "./models"; -import { FlexText } from "./models"; -import { FlexVideo } from "./models"; +import { FlexBox } from "./models.js"; +import { FlexButton } from "./models.js"; +import { FlexFiller } from "./models.js"; +import { FlexIcon } from "./models.js"; +import { FlexImage } from "./models.js"; +import { FlexSeparator } from "./models.js"; +import { FlexSpan } from "./models.js"; +import { FlexText } from "./models.js"; +import { FlexVideo } from "./models.js"; export type FlexComponent = | FlexBox // box diff --git a/lib/messaging-api/model/flexContainer.ts b/lib/messaging-api/model/flexContainer.ts index 59d276208..af44239c2 100644 --- a/lib/messaging-api/model/flexContainer.ts +++ b/lib/messaging-api/model/flexContainer.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { FlexBubble } from "./models"; -import { FlexCarousel } from "./models"; +import { FlexBubble } from "./models.js"; +import { FlexCarousel } from "./models.js"; export type FlexContainer = | FlexBubble // bubble diff --git a/lib/messaging-api/model/flexFiller.ts b/lib/messaging-api/model/flexFiller.ts index f043221da..5373d91cc 100644 --- a/lib/messaging-api/model/flexFiller.ts +++ b/lib/messaging-api/model/flexFiller.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { FlexComponent } from "./flexComponent"; +import { FlexComponent } from "./flexComponent.js"; -import { FlexComponentBase } from "./models"; +import { FlexComponentBase } from "./models.js"; export type FlexFiller = FlexComponentBase & { type: "filler"; diff --git a/lib/messaging-api/model/flexIcon.ts b/lib/messaging-api/model/flexIcon.ts index 90f988cce..b77675546 100644 --- a/lib/messaging-api/model/flexIcon.ts +++ b/lib/messaging-api/model/flexIcon.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { FlexComponent } from "./flexComponent"; +import { FlexComponent } from "./flexComponent.js"; -import { FlexComponentBase } from "./models"; +import { FlexComponentBase } from "./models.js"; export type FlexIcon = FlexComponentBase & { type: "icon"; diff --git a/lib/messaging-api/model/flexImage.ts b/lib/messaging-api/model/flexImage.ts index b72187390..33279e5e2 100644 --- a/lib/messaging-api/model/flexImage.ts +++ b/lib/messaging-api/model/flexImage.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { Action } from "./action"; -import { FlexComponent } from "./flexComponent"; +import { Action } from "./action.js"; +import { FlexComponent } from "./flexComponent.js"; -import { FlexComponentBase } from "./models"; +import { FlexComponentBase } from "./models.js"; export type FlexImage = FlexComponentBase & { type: "image"; diff --git a/lib/messaging-api/model/flexMessage.ts b/lib/messaging-api/model/flexMessage.ts index bbff35570..506e35537 100644 --- a/lib/messaging-api/model/flexMessage.ts +++ b/lib/messaging-api/model/flexMessage.ts @@ -10,12 +10,12 @@ * Do not edit the class manually. */ -import { FlexContainer } from "./flexContainer"; -import { Message } from "./message"; -import { QuickReply } from "./quickReply"; -import { Sender } from "./sender"; +import { FlexContainer } from "./flexContainer.js"; +import { Message } from "./message.js"; +import { QuickReply } from "./quickReply.js"; +import { Sender } from "./sender.js"; -import { MessageBase } from "./models"; +import { MessageBase } from "./models.js"; export type FlexMessage = MessageBase & { type: "flex"; diff --git a/lib/messaging-api/model/flexSeparator.ts b/lib/messaging-api/model/flexSeparator.ts index 289fdfdbc..5d53e2318 100644 --- a/lib/messaging-api/model/flexSeparator.ts +++ b/lib/messaging-api/model/flexSeparator.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { FlexComponent } from "./flexComponent"; +import { FlexComponent } from "./flexComponent.js"; -import { FlexComponentBase } from "./models"; +import { FlexComponentBase } from "./models.js"; export type FlexSeparator = FlexComponentBase & { type: "separator"; diff --git a/lib/messaging-api/model/flexSpan.ts b/lib/messaging-api/model/flexSpan.ts index a88440bd6..b622048e8 100644 --- a/lib/messaging-api/model/flexSpan.ts +++ b/lib/messaging-api/model/flexSpan.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { FlexComponent } from "./flexComponent"; +import { FlexComponent } from "./flexComponent.js"; -import { FlexComponentBase } from "./models"; +import { FlexComponentBase } from "./models.js"; export type FlexSpan = FlexComponentBase & { type: "span"; diff --git a/lib/messaging-api/model/flexText.ts b/lib/messaging-api/model/flexText.ts index a139fdd4d..1da5f9225 100644 --- a/lib/messaging-api/model/flexText.ts +++ b/lib/messaging-api/model/flexText.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { Action } from "./action"; -import { FlexComponent } from "./flexComponent"; -import { FlexSpan } from "./flexSpan"; +import { Action } from "./action.js"; +import { FlexComponent } from "./flexComponent.js"; +import { FlexSpan } from "./flexSpan.js"; -import { FlexComponentBase } from "./models"; +import { FlexComponentBase } from "./models.js"; export type FlexText = FlexComponentBase & { type: "text"; diff --git a/lib/messaging-api/model/flexVideo.ts b/lib/messaging-api/model/flexVideo.ts index 79e310ca7..f1e137c28 100644 --- a/lib/messaging-api/model/flexVideo.ts +++ b/lib/messaging-api/model/flexVideo.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { Action } from "./action"; -import { FlexComponent } from "./flexComponent"; +import { Action } from "./action.js"; +import { FlexComponent } from "./flexComponent.js"; -import { FlexComponentBase } from "./models"; +import { FlexComponentBase } from "./models.js"; export type FlexVideo = FlexComponentBase & { type: "video"; diff --git a/lib/messaging-api/model/genderDemographicFilter.ts b/lib/messaging-api/model/genderDemographicFilter.ts index 324fd1a5e..4378e60c7 100644 --- a/lib/messaging-api/model/genderDemographicFilter.ts +++ b/lib/messaging-api/model/genderDemographicFilter.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { DemographicFilter } from "./demographicFilter"; -import { GenderDemographic } from "./genderDemographic"; +import { DemographicFilter } from "./demographicFilter.js"; +import { GenderDemographic } from "./genderDemographic.js"; -import { DemographicFilterBase } from "./models"; +import { DemographicFilterBase } from "./models.js"; export type GenderDemographicFilter = DemographicFilterBase & { type: "gender"; diff --git a/lib/messaging-api/model/imageCarouselColumn.ts b/lib/messaging-api/model/imageCarouselColumn.ts index aae74c566..415ea5210 100644 --- a/lib/messaging-api/model/imageCarouselColumn.ts +++ b/lib/messaging-api/model/imageCarouselColumn.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; export type ImageCarouselColumn = { /** diff --git a/lib/messaging-api/model/imageCarouselTemplate.ts b/lib/messaging-api/model/imageCarouselTemplate.ts index e8133919f..68276dadf 100644 --- a/lib/messaging-api/model/imageCarouselTemplate.ts +++ b/lib/messaging-api/model/imageCarouselTemplate.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { ImageCarouselColumn } from "./imageCarouselColumn"; -import { Template } from "./template"; +import { ImageCarouselColumn } from "./imageCarouselColumn.js"; +import { Template } from "./template.js"; -import { TemplateBase } from "./models"; +import { TemplateBase } from "./models.js"; export type ImageCarouselTemplate = TemplateBase & { type: "image_carousel"; diff --git a/lib/messaging-api/model/imageMessage.ts b/lib/messaging-api/model/imageMessage.ts index e1c23c2ad..84af4eb73 100644 --- a/lib/messaging-api/model/imageMessage.ts +++ b/lib/messaging-api/model/imageMessage.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { Message } from "./message"; -import { QuickReply } from "./quickReply"; -import { Sender } from "./sender"; +import { Message } from "./message.js"; +import { QuickReply } from "./quickReply.js"; +import { Sender } from "./sender.js"; -import { MessageBase } from "./models"; +import { MessageBase } from "./models.js"; export type ImageMessage = MessageBase & { type: "image"; diff --git a/lib/messaging-api/model/imagemapAction.ts b/lib/messaging-api/model/imagemapAction.ts index 96a58384d..b200dfbcb 100644 --- a/lib/messaging-api/model/imagemapAction.ts +++ b/lib/messaging-api/model/imagemapAction.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { ImagemapArea } from "./imagemapArea"; +import { ImagemapArea } from "./imagemapArea.js"; -import { ClipboardImagemapAction } from "./models"; -import { MessageImagemapAction } from "./models"; -import { URIImagemapAction } from "./models"; +import { ClipboardImagemapAction } from "./models.js"; +import { MessageImagemapAction } from "./models.js"; +import { URIImagemapAction } from "./models.js"; export type ImagemapAction = | ClipboardImagemapAction // clipboard diff --git a/lib/messaging-api/model/imagemapMessage.ts b/lib/messaging-api/model/imagemapMessage.ts index f7ff7f51d..a52a351fc 100644 --- a/lib/messaging-api/model/imagemapMessage.ts +++ b/lib/messaging-api/model/imagemapMessage.ts @@ -10,14 +10,14 @@ * Do not edit the class manually. */ -import { ImagemapAction } from "./imagemapAction"; -import { ImagemapBaseSize } from "./imagemapBaseSize"; -import { ImagemapVideo } from "./imagemapVideo"; -import { Message } from "./message"; -import { QuickReply } from "./quickReply"; -import { Sender } from "./sender"; +import { ImagemapAction } from "./imagemapAction.js"; +import { ImagemapBaseSize } from "./imagemapBaseSize.js"; +import { ImagemapVideo } from "./imagemapVideo.js"; +import { Message } from "./message.js"; +import { QuickReply } from "./quickReply.js"; +import { Sender } from "./sender.js"; -import { MessageBase } from "./models"; +import { MessageBase } from "./models.js"; export type ImagemapMessage = MessageBase & { type: "imagemap"; diff --git a/lib/messaging-api/model/imagemapVideo.ts b/lib/messaging-api/model/imagemapVideo.ts index 7d7c330a8..c351bfe16 100644 --- a/lib/messaging-api/model/imagemapVideo.ts +++ b/lib/messaging-api/model/imagemapVideo.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { ImagemapArea } from "./imagemapArea"; -import { ImagemapExternalLink } from "./imagemapExternalLink"; +import { ImagemapArea } from "./imagemapArea.js"; +import { ImagemapExternalLink } from "./imagemapExternalLink.js"; export type ImagemapVideo = { /** diff --git a/lib/messaging-api/model/locationAction.ts b/lib/messaging-api/model/locationAction.ts index 17102320f..afbc9210d 100644 --- a/lib/messaging-api/model/locationAction.ts +++ b/lib/messaging-api/model/locationAction.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; -import { ActionBase } from "./models"; +import { ActionBase } from "./models.js"; export type LocationAction = ActionBase & { type: "location"; diff --git a/lib/messaging-api/model/locationMessage.ts b/lib/messaging-api/model/locationMessage.ts index 4c4d7dd21..b8927458c 100644 --- a/lib/messaging-api/model/locationMessage.ts +++ b/lib/messaging-api/model/locationMessage.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { Message } from "./message"; -import { QuickReply } from "./quickReply"; -import { Sender } from "./sender"; +import { Message } from "./message.js"; +import { QuickReply } from "./quickReply.js"; +import { Sender } from "./sender.js"; -import { MessageBase } from "./models"; +import { MessageBase } from "./models.js"; export type LocationMessage = MessageBase & { type: "location"; diff --git a/lib/messaging-api/model/markMessagesAsReadRequest.ts b/lib/messaging-api/model/markMessagesAsReadRequest.ts index de556a8f1..83545e14f 100644 --- a/lib/messaging-api/model/markMessagesAsReadRequest.ts +++ b/lib/messaging-api/model/markMessagesAsReadRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { ChatReference } from "./chatReference"; +import { ChatReference } from "./chatReference.js"; export type MarkMessagesAsReadRequest = { /** diff --git a/lib/messaging-api/model/message.ts b/lib/messaging-api/model/message.ts index 55dadd8b3..2bd20131a 100644 --- a/lib/messaging-api/model/message.ts +++ b/lib/messaging-api/model/message.ts @@ -10,18 +10,18 @@ * Do not edit the class manually. */ -import { QuickReply } from "./quickReply"; -import { Sender } from "./sender"; +import { QuickReply } from "./quickReply.js"; +import { Sender } from "./sender.js"; -import { AudioMessage } from "./models"; -import { FlexMessage } from "./models"; -import { ImageMessage } from "./models"; -import { ImagemapMessage } from "./models"; -import { LocationMessage } from "./models"; -import { StickerMessage } from "./models"; -import { TemplateMessage } from "./models"; -import { TextMessage } from "./models"; -import { VideoMessage } from "./models"; +import { AudioMessage } from "./models.js"; +import { FlexMessage } from "./models.js"; +import { ImageMessage } from "./models.js"; +import { ImagemapMessage } from "./models.js"; +import { LocationMessage } from "./models.js"; +import { StickerMessage } from "./models.js"; +import { TemplateMessage } from "./models.js"; +import { TextMessage } from "./models.js"; +import { VideoMessage } from "./models.js"; export type Message = | AudioMessage // audio diff --git a/lib/messaging-api/model/messageAction.ts b/lib/messaging-api/model/messageAction.ts index 38c907cc8..a9121b069 100644 --- a/lib/messaging-api/model/messageAction.ts +++ b/lib/messaging-api/model/messageAction.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; -import { ActionBase } from "./models"; +import { ActionBase } from "./models.js"; export type MessageAction = ActionBase & { type: "message"; diff --git a/lib/messaging-api/model/messageImagemapAction.ts b/lib/messaging-api/model/messageImagemapAction.ts index aa668c3a8..5d2aae146 100644 --- a/lib/messaging-api/model/messageImagemapAction.ts +++ b/lib/messaging-api/model/messageImagemapAction.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { ImagemapAction } from "./imagemapAction"; -import { ImagemapArea } from "./imagemapArea"; +import { ImagemapAction } from "./imagemapAction.js"; +import { ImagemapArea } from "./imagemapArea.js"; -import { ImagemapActionBase } from "./models"; +import { ImagemapActionBase } from "./models.js"; export type MessageImagemapAction = ImagemapActionBase & { type: "message"; diff --git a/lib/messaging-api/model/messageQuotaResponse.ts b/lib/messaging-api/model/messageQuotaResponse.ts index c4e08df9c..27b0766bb 100644 --- a/lib/messaging-api/model/messageQuotaResponse.ts +++ b/lib/messaging-api/model/messageQuotaResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { QuotaType } from "./quotaType"; +import { QuotaType } from "./quotaType.js"; export type MessageQuotaResponse = { /** diff --git a/lib/messaging-api/model/models.ts b/lib/messaging-api/model/models.ts index 6b4a3bc0f..2f06a028a 100644 --- a/lib/messaging-api/model/models.ts +++ b/lib/messaging-api/model/models.ts @@ -1,144 +1,144 @@ -export * from "./action"; -export * from "./ageDemographic"; -export * from "./ageDemographicFilter"; -export * from "./altUri"; -export * from "./appTypeDemographic"; -export * from "./appTypeDemographicFilter"; -export * from "./areaDemographic"; -export * from "./areaDemographicFilter"; -export * from "./audienceMatchMessagesRequest"; -export * from "./audienceRecipient"; -export * from "./audioMessage"; -export * from "./botInfoResponse"; -export * from "./broadcastRequest"; -export * from "./buttonsTemplate"; -export * from "./cameraAction"; -export * from "./cameraRollAction"; -export * from "./carouselColumn"; -export * from "./carouselTemplate"; -export * from "./chatReference"; -export * from "./clipboardAction"; -export * from "./clipboardImagemapAction"; -export * from "./confirmTemplate"; -export * from "./createRichMenuAliasRequest"; -export * from "./datetimePickerAction"; -export * from "./demographicFilter"; -export * from "./emoji"; -export * from "./errorDetail"; -export * from "./errorResponse"; -export * from "./filter"; -export * from "./flexBlockStyle"; -export * from "./flexBox"; -export * from "./flexBoxBackground"; -export * from "./flexBoxBorderWidth"; -export * from "./flexBoxCornerRadius"; -export * from "./flexBoxLinearGradient"; -export * from "./flexBoxPadding"; -export * from "./flexBoxSpacing"; -export * from "./flexBubble"; -export * from "./flexBubbleStyles"; -export * from "./flexButton"; -export * from "./flexCarousel"; -export * from "./flexComponent"; -export * from "./flexContainer"; -export * from "./flexFiller"; -export * from "./flexIcon"; -export * from "./flexIconSize"; -export * from "./flexImage"; -export * from "./flexImageSize"; -export * from "./flexMargin"; -export * from "./flexMessage"; -export * from "./flexOffset"; -export * from "./flexSeparator"; -export * from "./flexSpan"; -export * from "./flexSpanSize"; -export * from "./flexText"; -export * from "./flexTextFontSize"; -export * from "./flexVideo"; -export * from "./genderDemographic"; -export * from "./genderDemographicFilter"; -export * from "./getAggregationUnitNameListResponse"; -export * from "./getAggregationUnitUsageResponse"; -export * from "./getFollowersResponse"; -export * from "./getMessageContentTranscodingResponse"; -export * from "./getWebhookEndpointResponse"; -export * from "./groupMemberCountResponse"; -export * from "./groupSummaryResponse"; -export * from "./groupUserProfileResponse"; -export * from "./imageCarouselColumn"; -export * from "./imageCarouselTemplate"; -export * from "./imageMessage"; -export * from "./imagemapAction"; -export * from "./imagemapArea"; -export * from "./imagemapBaseSize"; -export * from "./imagemapExternalLink"; -export * from "./imagemapMessage"; -export * from "./imagemapVideo"; -export * from "./issueLinkTokenResponse"; -export * from "./limit"; -export * from "./locationAction"; -export * from "./locationMessage"; -export * from "./markMessagesAsReadRequest"; -export * from "./membersIdsResponse"; -export * from "./message"; -export * from "./messageAction"; -export * from "./messageImagemapAction"; -export * from "./messageQuotaResponse"; -export * from "./multicastRequest"; -export * from "./narrowcastProgressResponse"; -export * from "./narrowcastRequest"; -export * from "./numberOfMessagesResponse"; -export * from "./operatorDemographicFilter"; -export * from "./operatorRecipient"; -export * from "./pnpMessagesRequest"; -export * from "./postbackAction"; -export * from "./pushMessageRequest"; -export * from "./pushMessageResponse"; -export * from "./quickReply"; -export * from "./quickReplyItem"; -export * from "./quotaConsumptionResponse"; -export * from "./quotaType"; -export * from "./recipient"; -export * from "./redeliveryRecipient"; -export * from "./replyMessageRequest"; -export * from "./replyMessageResponse"; -export * from "./richMenuAliasListResponse"; -export * from "./richMenuAliasResponse"; -export * from "./richMenuArea"; -export * from "./richMenuBatchLinkOperation"; -export * from "./richMenuBatchOperation"; -export * from "./richMenuBatchProgressPhase"; -export * from "./richMenuBatchProgressResponse"; -export * from "./richMenuBatchRequest"; -export * from "./richMenuBatchUnlinkAllOperation"; -export * from "./richMenuBatchUnlinkOperation"; -export * from "./richMenuBounds"; -export * from "./richMenuBulkLinkRequest"; -export * from "./richMenuBulkUnlinkRequest"; -export * from "./richMenuIdResponse"; -export * from "./richMenuListResponse"; -export * from "./richMenuRequest"; -export * from "./richMenuResponse"; -export * from "./richMenuSize"; -export * from "./richMenuSwitchAction"; -export * from "./roomMemberCountResponse"; -export * from "./roomUserProfileResponse"; -export * from "./sender"; -export * from "./sentMessage"; -export * from "./setWebhookEndpointRequest"; -export * from "./stickerMessage"; -export * from "./subscriptionPeriodDemographic"; -export * from "./subscriptionPeriodDemographicFilter"; -export * from "./template"; -export * from "./templateImageAspectRatio"; -export * from "./templateImageSize"; -export * from "./templateMessage"; -export * from "./testWebhookEndpointRequest"; -export * from "./testWebhookEndpointResponse"; -export * from "./textMessage"; -export * from "./uRIAction"; -export * from "./uRIImagemapAction"; -export * from "./updateRichMenuAliasRequest"; -export * from "./userProfileResponse"; -export * from "./validateMessageRequest"; -export * from "./videoMessage"; +export * from "./action.js"; +export * from "./ageDemographic.js"; +export * from "./ageDemographicFilter.js"; +export * from "./altUri.js"; +export * from "./appTypeDemographic.js"; +export * from "./appTypeDemographicFilter.js"; +export * from "./areaDemographic.js"; +export * from "./areaDemographicFilter.js"; +export * from "./audienceMatchMessagesRequest.js"; +export * from "./audienceRecipient.js"; +export * from "./audioMessage.js"; +export * from "./botInfoResponse.js"; +export * from "./broadcastRequest.js"; +export * from "./buttonsTemplate.js"; +export * from "./cameraAction.js"; +export * from "./cameraRollAction.js"; +export * from "./carouselColumn.js"; +export * from "./carouselTemplate.js"; +export * from "./chatReference.js"; +export * from "./clipboardAction.js"; +export * from "./clipboardImagemapAction.js"; +export * from "./confirmTemplate.js"; +export * from "./createRichMenuAliasRequest.js"; +export * from "./datetimePickerAction.js"; +export * from "./demographicFilter.js"; +export * from "./emoji.js"; +export * from "./errorDetail.js"; +export * from "./errorResponse.js"; +export * from "./filter.js"; +export * from "./flexBlockStyle.js"; +export * from "./flexBox.js"; +export * from "./flexBoxBackground.js"; +export * from "./flexBoxBorderWidth.js"; +export * from "./flexBoxCornerRadius.js"; +export * from "./flexBoxLinearGradient.js"; +export * from "./flexBoxPadding.js"; +export * from "./flexBoxSpacing.js"; +export * from "./flexBubble.js"; +export * from "./flexBubbleStyles.js"; +export * from "./flexButton.js"; +export * from "./flexCarousel.js"; +export * from "./flexComponent.js"; +export * from "./flexContainer.js"; +export * from "./flexFiller.js"; +export * from "./flexIcon.js"; +export * from "./flexIconSize.js"; +export * from "./flexImage.js"; +export * from "./flexImageSize.js"; +export * from "./flexMargin.js"; +export * from "./flexMessage.js"; +export * from "./flexOffset.js"; +export * from "./flexSeparator.js"; +export * from "./flexSpan.js"; +export * from "./flexSpanSize.js"; +export * from "./flexText.js"; +export * from "./flexTextFontSize.js"; +export * from "./flexVideo.js"; +export * from "./genderDemographic.js"; +export * from "./genderDemographicFilter.js"; +export * from "./getAggregationUnitNameListResponse.js"; +export * from "./getAggregationUnitUsageResponse.js"; +export * from "./getFollowersResponse.js"; +export * from "./getMessageContentTranscodingResponse.js"; +export * from "./getWebhookEndpointResponse.js"; +export * from "./groupMemberCountResponse.js"; +export * from "./groupSummaryResponse.js"; +export * from "./groupUserProfileResponse.js"; +export * from "./imageCarouselColumn.js"; +export * from "./imageCarouselTemplate.js"; +export * from "./imageMessage.js"; +export * from "./imagemapAction.js"; +export * from "./imagemapArea.js"; +export * from "./imagemapBaseSize.js"; +export * from "./imagemapExternalLink.js"; +export * from "./imagemapMessage.js"; +export * from "./imagemapVideo.js"; +export * from "./issueLinkTokenResponse.js"; +export * from "./limit.js"; +export * from "./locationAction.js"; +export * from "./locationMessage.js"; +export * from "./markMessagesAsReadRequest.js"; +export * from "./membersIdsResponse.js"; +export * from "./message.js"; +export * from "./messageAction.js"; +export * from "./messageImagemapAction.js"; +export * from "./messageQuotaResponse.js"; +export * from "./multicastRequest.js"; +export * from "./narrowcastProgressResponse.js"; +export * from "./narrowcastRequest.js"; +export * from "./numberOfMessagesResponse.js"; +export * from "./operatorDemographicFilter.js"; +export * from "./operatorRecipient.js"; +export * from "./pnpMessagesRequest.js"; +export * from "./postbackAction.js"; +export * from "./pushMessageRequest.js"; +export * from "./pushMessageResponse.js"; +export * from "./quickReply.js"; +export * from "./quickReplyItem.js"; +export * from "./quotaConsumptionResponse.js"; +export * from "./quotaType.js"; +export * from "./recipient.js"; +export * from "./redeliveryRecipient.js"; +export * from "./replyMessageRequest.js"; +export * from "./replyMessageResponse.js"; +export * from "./richMenuAliasListResponse.js"; +export * from "./richMenuAliasResponse.js"; +export * from "./richMenuArea.js"; +export * from "./richMenuBatchLinkOperation.js"; +export * from "./richMenuBatchOperation.js"; +export * from "./richMenuBatchProgressPhase.js"; +export * from "./richMenuBatchProgressResponse.js"; +export * from "./richMenuBatchRequest.js"; +export * from "./richMenuBatchUnlinkAllOperation.js"; +export * from "./richMenuBatchUnlinkOperation.js"; +export * from "./richMenuBounds.js"; +export * from "./richMenuBulkLinkRequest.js"; +export * from "./richMenuBulkUnlinkRequest.js"; +export * from "./richMenuIdResponse.js"; +export * from "./richMenuListResponse.js"; +export * from "./richMenuRequest.js"; +export * from "./richMenuResponse.js"; +export * from "./richMenuSize.js"; +export * from "./richMenuSwitchAction.js"; +export * from "./roomMemberCountResponse.js"; +export * from "./roomUserProfileResponse.js"; +export * from "./sender.js"; +export * from "./sentMessage.js"; +export * from "./setWebhookEndpointRequest.js"; +export * from "./stickerMessage.js"; +export * from "./subscriptionPeriodDemographic.js"; +export * from "./subscriptionPeriodDemographicFilter.js"; +export * from "./template.js"; +export * from "./templateImageAspectRatio.js"; +export * from "./templateImageSize.js"; +export * from "./templateMessage.js"; +export * from "./testWebhookEndpointRequest.js"; +export * from "./testWebhookEndpointResponse.js"; +export * from "./textMessage.js"; +export * from "./uRIAction.js"; +export * from "./uRIImagemapAction.js"; +export * from "./updateRichMenuAliasRequest.js"; +export * from "./userProfileResponse.js"; +export * from "./validateMessageRequest.js"; +export * from "./videoMessage.js"; diff --git a/lib/messaging-api/model/multicastRequest.ts b/lib/messaging-api/model/multicastRequest.ts index c09a695c9..50aa110c3 100644 --- a/lib/messaging-api/model/multicastRequest.ts +++ b/lib/messaging-api/model/multicastRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Message } from "./message"; +import { Message } from "./message.js"; export type MulticastRequest = { /** diff --git a/lib/messaging-api/model/narrowcastRequest.ts b/lib/messaging-api/model/narrowcastRequest.ts index 6bca5f02d..fe52cc024 100644 --- a/lib/messaging-api/model/narrowcastRequest.ts +++ b/lib/messaging-api/model/narrowcastRequest.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { Filter } from "./filter"; -import { Limit } from "./limit"; -import { Message } from "./message"; -import { Recipient } from "./recipient"; +import { Filter } from "./filter.js"; +import { Limit } from "./limit.js"; +import { Message } from "./message.js"; +import { Recipient } from "./recipient.js"; export type NarrowcastRequest = { /** diff --git a/lib/messaging-api/model/operatorDemographicFilter.ts b/lib/messaging-api/model/operatorDemographicFilter.ts index 48bf6121a..bfa21d5ea 100644 --- a/lib/messaging-api/model/operatorDemographicFilter.ts +++ b/lib/messaging-api/model/operatorDemographicFilter.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { DemographicFilter } from "./demographicFilter"; +import { DemographicFilter } from "./demographicFilter.js"; -import { DemographicFilterBase } from "./models"; +import { DemographicFilterBase } from "./models.js"; export type OperatorDemographicFilter = DemographicFilterBase & { type: "operator"; diff --git a/lib/messaging-api/model/operatorRecipient.ts b/lib/messaging-api/model/operatorRecipient.ts index 0e3db9c8b..b8ba0e22c 100644 --- a/lib/messaging-api/model/operatorRecipient.ts +++ b/lib/messaging-api/model/operatorRecipient.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Recipient } from "./recipient"; +import { Recipient } from "./recipient.js"; -import { RecipientBase } from "./models"; +import { RecipientBase } from "./models.js"; export type OperatorRecipient = RecipientBase & { type: "operator"; diff --git a/lib/messaging-api/model/pnpMessagesRequest.ts b/lib/messaging-api/model/pnpMessagesRequest.ts index da6e5c4c7..9433c6f88 100644 --- a/lib/messaging-api/model/pnpMessagesRequest.ts +++ b/lib/messaging-api/model/pnpMessagesRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Message } from "./message"; +import { Message } from "./message.js"; export type PnpMessagesRequest = { /** diff --git a/lib/messaging-api/model/postbackAction.ts b/lib/messaging-api/model/postbackAction.ts index 0cd73cdbe..b7b34c7a1 100644 --- a/lib/messaging-api/model/postbackAction.ts +++ b/lib/messaging-api/model/postbackAction.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; -import { ActionBase } from "./models"; +import { ActionBase } from "./models.js"; export type PostbackAction = ActionBase & { type: "postback"; diff --git a/lib/messaging-api/model/pushMessageRequest.ts b/lib/messaging-api/model/pushMessageRequest.ts index 2c9a64d45..f29a0c1da 100644 --- a/lib/messaging-api/model/pushMessageRequest.ts +++ b/lib/messaging-api/model/pushMessageRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Message } from "./message"; +import { Message } from "./message.js"; export type PushMessageRequest = { /** diff --git a/lib/messaging-api/model/pushMessageResponse.ts b/lib/messaging-api/model/pushMessageResponse.ts index 3e9769cae..d2aca967d 100644 --- a/lib/messaging-api/model/pushMessageResponse.ts +++ b/lib/messaging-api/model/pushMessageResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { SentMessage } from "./sentMessage"; +import { SentMessage } from "./sentMessage.js"; export type PushMessageResponse = { /** diff --git a/lib/messaging-api/model/quickReply.ts b/lib/messaging-api/model/quickReply.ts index 3b48a0c70..8c24292bc 100644 --- a/lib/messaging-api/model/quickReply.ts +++ b/lib/messaging-api/model/quickReply.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { QuickReplyItem } from "./quickReplyItem"; +import { QuickReplyItem } from "./quickReplyItem.js"; /** * Quick reply diff --git a/lib/messaging-api/model/quickReplyItem.ts b/lib/messaging-api/model/quickReplyItem.ts index a4e593aa5..acdde4285 100644 --- a/lib/messaging-api/model/quickReplyItem.ts +++ b/lib/messaging-api/model/quickReplyItem.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; export type QuickReplyItem = { /** diff --git a/lib/messaging-api/model/recipient.ts b/lib/messaging-api/model/recipient.ts index 9d9b9bb6c..8de4805e3 100644 --- a/lib/messaging-api/model/recipient.ts +++ b/lib/messaging-api/model/recipient.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { AudienceRecipient } from "./models"; -import { OperatorRecipient } from "./models"; -import { RedeliveryRecipient } from "./models"; +import { AudienceRecipient } from "./models.js"; +import { OperatorRecipient } from "./models.js"; +import { RedeliveryRecipient } from "./models.js"; export type Recipient = | AudienceRecipient // audience diff --git a/lib/messaging-api/model/redeliveryRecipient.ts b/lib/messaging-api/model/redeliveryRecipient.ts index 009b442ae..368ebda9a 100644 --- a/lib/messaging-api/model/redeliveryRecipient.ts +++ b/lib/messaging-api/model/redeliveryRecipient.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Recipient } from "./recipient"; +import { Recipient } from "./recipient.js"; -import { RecipientBase } from "./models"; +import { RecipientBase } from "./models.js"; export type RedeliveryRecipient = RecipientBase & { type: "redelivery"; diff --git a/lib/messaging-api/model/replyMessageRequest.ts b/lib/messaging-api/model/replyMessageRequest.ts index 83a97f5d2..376c8cbab 100644 --- a/lib/messaging-api/model/replyMessageRequest.ts +++ b/lib/messaging-api/model/replyMessageRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Message } from "./message"; +import { Message } from "./message.js"; export type ReplyMessageRequest = { /** diff --git a/lib/messaging-api/model/replyMessageResponse.ts b/lib/messaging-api/model/replyMessageResponse.ts index 37d6cbfce..2f03b47a0 100644 --- a/lib/messaging-api/model/replyMessageResponse.ts +++ b/lib/messaging-api/model/replyMessageResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { SentMessage } from "./sentMessage"; +import { SentMessage } from "./sentMessage.js"; export type ReplyMessageResponse = { /** diff --git a/lib/messaging-api/model/richMenuAliasListResponse.ts b/lib/messaging-api/model/richMenuAliasListResponse.ts index bf42acbb9..e031e887d 100644 --- a/lib/messaging-api/model/richMenuAliasListResponse.ts +++ b/lib/messaging-api/model/richMenuAliasListResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { RichMenuAliasResponse } from "./richMenuAliasResponse"; +import { RichMenuAliasResponse } from "./richMenuAliasResponse.js"; export type RichMenuAliasListResponse = { /** diff --git a/lib/messaging-api/model/richMenuArea.ts b/lib/messaging-api/model/richMenuArea.ts index d1a0a06b1..119c1cab5 100644 --- a/lib/messaging-api/model/richMenuArea.ts +++ b/lib/messaging-api/model/richMenuArea.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { Action } from "./action"; -import { RichMenuBounds } from "./richMenuBounds"; +import { Action } from "./action.js"; +import { RichMenuBounds } from "./richMenuBounds.js"; /** * Rich menu area diff --git a/lib/messaging-api/model/richMenuBatchLinkOperation.ts b/lib/messaging-api/model/richMenuBatchLinkOperation.ts index cd432fa8c..755595586 100644 --- a/lib/messaging-api/model/richMenuBatchLinkOperation.ts +++ b/lib/messaging-api/model/richMenuBatchLinkOperation.ts @@ -10,12 +10,12 @@ * Do not edit the class manually. */ -import { RichMenuBatchOperation } from "./richMenuBatchOperation"; +import { RichMenuBatchOperation } from "./richMenuBatchOperation.js"; /** * Replace the rich menu with the rich menu specified in the `to` property for all users linked to the rich menu specified in the `from` property. */ -import { RichMenuBatchOperationBase } from "./models"; +import { RichMenuBatchOperationBase } from "./models.js"; export type RichMenuBatchLinkOperation = RichMenuBatchOperationBase & { type: "link"; diff --git a/lib/messaging-api/model/richMenuBatchOperation.ts b/lib/messaging-api/model/richMenuBatchOperation.ts index 8ca767c29..02ad148fd 100644 --- a/lib/messaging-api/model/richMenuBatchOperation.ts +++ b/lib/messaging-api/model/richMenuBatchOperation.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { RichMenuBatchLinkOperation } from "./models"; -import { RichMenuBatchUnlinkOperation } from "./models"; -import { RichMenuBatchUnlinkAllOperation } from "./models"; +import { RichMenuBatchLinkOperation } from "./models.js"; +import { RichMenuBatchUnlinkOperation } from "./models.js"; +import { RichMenuBatchUnlinkAllOperation } from "./models.js"; export type RichMenuBatchOperation = | RichMenuBatchLinkOperation // link diff --git a/lib/messaging-api/model/richMenuBatchProgressResponse.ts b/lib/messaging-api/model/richMenuBatchProgressResponse.ts index 1963bf81e..960d5ef27 100644 --- a/lib/messaging-api/model/richMenuBatchProgressResponse.ts +++ b/lib/messaging-api/model/richMenuBatchProgressResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { RichMenuBatchProgressPhase } from "./richMenuBatchProgressPhase"; +import { RichMenuBatchProgressPhase } from "./richMenuBatchProgressPhase.js"; export type RichMenuBatchProgressResponse = { /** diff --git a/lib/messaging-api/model/richMenuBatchRequest.ts b/lib/messaging-api/model/richMenuBatchRequest.ts index 946b83545..437803cff 100644 --- a/lib/messaging-api/model/richMenuBatchRequest.ts +++ b/lib/messaging-api/model/richMenuBatchRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { RichMenuBatchOperation } from "./richMenuBatchOperation"; +import { RichMenuBatchOperation } from "./richMenuBatchOperation.js"; export type RichMenuBatchRequest = { /** diff --git a/lib/messaging-api/model/richMenuBatchUnlinkAllOperation.ts b/lib/messaging-api/model/richMenuBatchUnlinkAllOperation.ts index 332608860..43ea2726c 100644 --- a/lib/messaging-api/model/richMenuBatchUnlinkAllOperation.ts +++ b/lib/messaging-api/model/richMenuBatchUnlinkAllOperation.ts @@ -10,12 +10,12 @@ * Do not edit the class manually. */ -import { RichMenuBatchOperation } from "./richMenuBatchOperation"; +import { RichMenuBatchOperation } from "./richMenuBatchOperation.js"; /** * Unlink the rich menu from all users linked to the rich menu. */ -import { RichMenuBatchOperationBase } from "./models"; +import { RichMenuBatchOperationBase } from "./models.js"; export type RichMenuBatchUnlinkAllOperation = RichMenuBatchOperationBase & { type: "unlinkAll"; diff --git a/lib/messaging-api/model/richMenuBatchUnlinkOperation.ts b/lib/messaging-api/model/richMenuBatchUnlinkOperation.ts index 36201f143..dc92b2dd9 100644 --- a/lib/messaging-api/model/richMenuBatchUnlinkOperation.ts +++ b/lib/messaging-api/model/richMenuBatchUnlinkOperation.ts @@ -10,12 +10,12 @@ * Do not edit the class manually. */ -import { RichMenuBatchOperation } from "./richMenuBatchOperation"; +import { RichMenuBatchOperation } from "./richMenuBatchOperation.js"; /** * Unlink the rich menu for all users linked to the rich menu specified in the `from` property. */ -import { RichMenuBatchOperationBase } from "./models"; +import { RichMenuBatchOperationBase } from "./models.js"; export type RichMenuBatchUnlinkOperation = RichMenuBatchOperationBase & { type: "unlink"; diff --git a/lib/messaging-api/model/richMenuListResponse.ts b/lib/messaging-api/model/richMenuListResponse.ts index c3fa3828a..c3a87a6d4 100644 --- a/lib/messaging-api/model/richMenuListResponse.ts +++ b/lib/messaging-api/model/richMenuListResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { RichMenuResponse } from "./richMenuResponse"; +import { RichMenuResponse } from "./richMenuResponse.js"; export type RichMenuListResponse = { /** diff --git a/lib/messaging-api/model/richMenuRequest.ts b/lib/messaging-api/model/richMenuRequest.ts index f527f9c61..d35400bd2 100644 --- a/lib/messaging-api/model/richMenuRequest.ts +++ b/lib/messaging-api/model/richMenuRequest.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { RichMenuArea } from "./richMenuArea"; -import { RichMenuSize } from "./richMenuSize"; +import { RichMenuArea } from "./richMenuArea.js"; +import { RichMenuSize } from "./richMenuSize.js"; export type RichMenuRequest = { /** diff --git a/lib/messaging-api/model/richMenuResponse.ts b/lib/messaging-api/model/richMenuResponse.ts index 90247af03..630f5f55e 100644 --- a/lib/messaging-api/model/richMenuResponse.ts +++ b/lib/messaging-api/model/richMenuResponse.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { RichMenuArea } from "./richMenuArea"; -import { RichMenuSize } from "./richMenuSize"; +import { RichMenuArea } from "./richMenuArea.js"; +import { RichMenuSize } from "./richMenuSize.js"; export type RichMenuResponse = { /** diff --git a/lib/messaging-api/model/richMenuSwitchAction.ts b/lib/messaging-api/model/richMenuSwitchAction.ts index a058eb90e..402d002c1 100644 --- a/lib/messaging-api/model/richMenuSwitchAction.ts +++ b/lib/messaging-api/model/richMenuSwitchAction.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Action } from "./action"; +import { Action } from "./action.js"; -import { ActionBase } from "./models"; +import { ActionBase } from "./models.js"; export type RichMenuSwitchAction = ActionBase & { type: "richmenuswitch"; diff --git a/lib/messaging-api/model/stickerMessage.ts b/lib/messaging-api/model/stickerMessage.ts index 81e9e222b..f454c4d04 100644 --- a/lib/messaging-api/model/stickerMessage.ts +++ b/lib/messaging-api/model/stickerMessage.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { Message } from "./message"; -import { QuickReply } from "./quickReply"; -import { Sender } from "./sender"; +import { Message } from "./message.js"; +import { QuickReply } from "./quickReply.js"; +import { Sender } from "./sender.js"; -import { MessageBase } from "./models"; +import { MessageBase } from "./models.js"; export type StickerMessage = MessageBase & { type: "sticker"; diff --git a/lib/messaging-api/model/subscriptionPeriodDemographicFilter.ts b/lib/messaging-api/model/subscriptionPeriodDemographicFilter.ts index 57e888631..7e3bc7557 100644 --- a/lib/messaging-api/model/subscriptionPeriodDemographicFilter.ts +++ b/lib/messaging-api/model/subscriptionPeriodDemographicFilter.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { DemographicFilter } from "./demographicFilter"; -import { SubscriptionPeriodDemographic } from "./subscriptionPeriodDemographic"; +import { DemographicFilter } from "./demographicFilter.js"; +import { SubscriptionPeriodDemographic } from "./subscriptionPeriodDemographic.js"; -import { DemographicFilterBase } from "./models"; +import { DemographicFilterBase } from "./models.js"; export type SubscriptionPeriodDemographicFilter = DemographicFilterBase & { type: "subscriptionPeriod"; diff --git a/lib/messaging-api/model/template.ts b/lib/messaging-api/model/template.ts index c51817c97..778b31fc0 100644 --- a/lib/messaging-api/model/template.ts +++ b/lib/messaging-api/model/template.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { ButtonsTemplate } from "./models"; -import { CarouselTemplate } from "./models"; -import { ConfirmTemplate } from "./models"; -import { ImageCarouselTemplate } from "./models"; +import { ButtonsTemplate } from "./models.js"; +import { CarouselTemplate } from "./models.js"; +import { ConfirmTemplate } from "./models.js"; +import { ImageCarouselTemplate } from "./models.js"; export type Template = | ButtonsTemplate // buttons diff --git a/lib/messaging-api/model/templateMessage.ts b/lib/messaging-api/model/templateMessage.ts index 8f73cea23..592ea996f 100644 --- a/lib/messaging-api/model/templateMessage.ts +++ b/lib/messaging-api/model/templateMessage.ts @@ -10,12 +10,12 @@ * Do not edit the class manually. */ -import { Message } from "./message"; -import { QuickReply } from "./quickReply"; -import { Sender } from "./sender"; -import { Template } from "./template"; +import { Message } from "./message.js"; +import { QuickReply } from "./quickReply.js"; +import { Sender } from "./sender.js"; +import { Template } from "./template.js"; -import { MessageBase } from "./models"; +import { MessageBase } from "./models.js"; export type TemplateMessage = MessageBase & { type: "template"; diff --git a/lib/messaging-api/model/textMessage.ts b/lib/messaging-api/model/textMessage.ts index 98bd75963..3fd657d59 100644 --- a/lib/messaging-api/model/textMessage.ts +++ b/lib/messaging-api/model/textMessage.ts @@ -10,12 +10,12 @@ * Do not edit the class manually. */ -import { Emoji } from "./emoji"; -import { Message } from "./message"; -import { QuickReply } from "./quickReply"; -import { Sender } from "./sender"; +import { Emoji } from "./emoji.js"; +import { Message } from "./message.js"; +import { QuickReply } from "./quickReply.js"; +import { Sender } from "./sender.js"; -import { MessageBase } from "./models"; +import { MessageBase } from "./models.js"; export type TextMessage = MessageBase & { type: "text"; diff --git a/lib/messaging-api/model/uRIAction.ts b/lib/messaging-api/model/uRIAction.ts index b4ba3e8e9..42fa92d33 100644 --- a/lib/messaging-api/model/uRIAction.ts +++ b/lib/messaging-api/model/uRIAction.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { Action } from "./action"; -import { AltUri } from "./altUri"; +import { Action } from "./action.js"; +import { AltUri } from "./altUri.js"; -import { ActionBase } from "./models"; +import { ActionBase } from "./models.js"; export type URIAction = ActionBase & { type: "uri"; diff --git a/lib/messaging-api/model/uRIImagemapAction.ts b/lib/messaging-api/model/uRIImagemapAction.ts index 6b51c6a8f..739db79a9 100644 --- a/lib/messaging-api/model/uRIImagemapAction.ts +++ b/lib/messaging-api/model/uRIImagemapAction.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { ImagemapAction } from "./imagemapAction"; -import { ImagemapArea } from "./imagemapArea"; +import { ImagemapAction } from "./imagemapAction.js"; +import { ImagemapArea } from "./imagemapArea.js"; -import { ImagemapActionBase } from "./models"; +import { ImagemapActionBase } from "./models.js"; export type URIImagemapAction = ImagemapActionBase & { type: "uri"; diff --git a/lib/messaging-api/model/validateMessageRequest.ts b/lib/messaging-api/model/validateMessageRequest.ts index 72af0855d..c1e4d5cce 100644 --- a/lib/messaging-api/model/validateMessageRequest.ts +++ b/lib/messaging-api/model/validateMessageRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Message } from "./message"; +import { Message } from "./message.js"; export type ValidateMessageRequest = { /** diff --git a/lib/messaging-api/model/videoMessage.ts b/lib/messaging-api/model/videoMessage.ts index 92644e545..34ed1a3ca 100644 --- a/lib/messaging-api/model/videoMessage.ts +++ b/lib/messaging-api/model/videoMessage.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { Message } from "./message"; -import { QuickReply } from "./quickReply"; -import { Sender } from "./sender"; +import { Message } from "./message.js"; +import { QuickReply } from "./quickReply.js"; +import { Sender } from "./sender.js"; -import { MessageBase } from "./models"; +import { MessageBase } from "./models.js"; export type VideoMessage = MessageBase & { type: "video"; diff --git a/lib/messaging-api/tests/api/MessagingApiBlobClientTest.spec.ts b/lib/messaging-api/tests/api/MessagingApiBlobClientTest.spec.ts index d1ac1d4dc..b08375405 100644 --- a/lib/messaging-api/tests/api/MessagingApiBlobClientTest.spec.ts +++ b/lib/messaging-api/tests/api/MessagingApiBlobClientTest.spec.ts @@ -1,10 +1,12 @@ -import { MessagingApiBlobClient } from "../../api"; +import { MessagingApiBlobClient } from "../../api.js"; -import { GetMessageContentTranscodingResponse } from "../../model/getMessageContentTranscodingResponse"; +import { GetMessageContentTranscodingResponse } from "../../model/getMessageContentTranscodingResponse.js"; import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; describe("MessagingApiBlobClient", () => { diff --git a/lib/messaging-api/tests/api/MessagingApiClientTest.spec.ts b/lib/messaging-api/tests/api/MessagingApiClientTest.spec.ts index fb7021cbc..ecebf62d6 100644 --- a/lib/messaging-api/tests/api/MessagingApiClientTest.spec.ts +++ b/lib/messaging-api/tests/api/MessagingApiClientTest.spec.ts @@ -1,53 +1,55 @@ -import { MessagingApiClient } from "../../api"; - -import { AudienceMatchMessagesRequest } from "../../model/audienceMatchMessagesRequest"; -import { BotInfoResponse } from "../../model/botInfoResponse"; -import { BroadcastRequest } from "../../model/broadcastRequest"; -import { CreateRichMenuAliasRequest } from "../../model/createRichMenuAliasRequest"; -import { ErrorResponse } from "../../model/errorResponse"; -import { GetAggregationUnitNameListResponse } from "../../model/getAggregationUnitNameListResponse"; -import { GetAggregationUnitUsageResponse } from "../../model/getAggregationUnitUsageResponse"; -import { GetFollowersResponse } from "../../model/getFollowersResponse"; -import { GetWebhookEndpointResponse } from "../../model/getWebhookEndpointResponse"; -import { GroupMemberCountResponse } from "../../model/groupMemberCountResponse"; -import { GroupSummaryResponse } from "../../model/groupSummaryResponse"; -import { GroupUserProfileResponse } from "../../model/groupUserProfileResponse"; -import { IssueLinkTokenResponse } from "../../model/issueLinkTokenResponse"; -import { MarkMessagesAsReadRequest } from "../../model/markMessagesAsReadRequest"; -import { MembersIdsResponse } from "../../model/membersIdsResponse"; -import { MessageQuotaResponse } from "../../model/messageQuotaResponse"; -import { MulticastRequest } from "../../model/multicastRequest"; -import { NarrowcastProgressResponse } from "../../model/narrowcastProgressResponse"; -import { NarrowcastRequest } from "../../model/narrowcastRequest"; -import { NumberOfMessagesResponse } from "../../model/numberOfMessagesResponse"; -import { PnpMessagesRequest } from "../../model/pnpMessagesRequest"; -import { PushMessageRequest } from "../../model/pushMessageRequest"; -import { PushMessageResponse } from "../../model/pushMessageResponse"; -import { QuotaConsumptionResponse } from "../../model/quotaConsumptionResponse"; -import { ReplyMessageRequest } from "../../model/replyMessageRequest"; -import { ReplyMessageResponse } from "../../model/replyMessageResponse"; -import { RichMenuAliasListResponse } from "../../model/richMenuAliasListResponse"; -import { RichMenuAliasResponse } from "../../model/richMenuAliasResponse"; -import { RichMenuBatchProgressResponse } from "../../model/richMenuBatchProgressResponse"; -import { RichMenuBatchRequest } from "../../model/richMenuBatchRequest"; -import { RichMenuBulkLinkRequest } from "../../model/richMenuBulkLinkRequest"; -import { RichMenuBulkUnlinkRequest } from "../../model/richMenuBulkUnlinkRequest"; -import { RichMenuIdResponse } from "../../model/richMenuIdResponse"; -import { RichMenuListResponse } from "../../model/richMenuListResponse"; -import { RichMenuRequest } from "../../model/richMenuRequest"; -import { RichMenuResponse } from "../../model/richMenuResponse"; -import { RoomMemberCountResponse } from "../../model/roomMemberCountResponse"; -import { RoomUserProfileResponse } from "../../model/roomUserProfileResponse"; -import { SetWebhookEndpointRequest } from "../../model/setWebhookEndpointRequest"; -import { TestWebhookEndpointRequest } from "../../model/testWebhookEndpointRequest"; -import { TestWebhookEndpointResponse } from "../../model/testWebhookEndpointResponse"; -import { UpdateRichMenuAliasRequest } from "../../model/updateRichMenuAliasRequest"; -import { UserProfileResponse } from "../../model/userProfileResponse"; -import { ValidateMessageRequest } from "../../model/validateMessageRequest"; +import { MessagingApiClient } from "../../api.js"; + +import { AudienceMatchMessagesRequest } from "../../model/audienceMatchMessagesRequest.js"; +import { BotInfoResponse } from "../../model/botInfoResponse.js"; +import { BroadcastRequest } from "../../model/broadcastRequest.js"; +import { CreateRichMenuAliasRequest } from "../../model/createRichMenuAliasRequest.js"; +import { ErrorResponse } from "../../model/errorResponse.js"; +import { GetAggregationUnitNameListResponse } from "../../model/getAggregationUnitNameListResponse.js"; +import { GetAggregationUnitUsageResponse } from "../../model/getAggregationUnitUsageResponse.js"; +import { GetFollowersResponse } from "../../model/getFollowersResponse.js"; +import { GetWebhookEndpointResponse } from "../../model/getWebhookEndpointResponse.js"; +import { GroupMemberCountResponse } from "../../model/groupMemberCountResponse.js"; +import { GroupSummaryResponse } from "../../model/groupSummaryResponse.js"; +import { GroupUserProfileResponse } from "../../model/groupUserProfileResponse.js"; +import { IssueLinkTokenResponse } from "../../model/issueLinkTokenResponse.js"; +import { MarkMessagesAsReadRequest } from "../../model/markMessagesAsReadRequest.js"; +import { MembersIdsResponse } from "../../model/membersIdsResponse.js"; +import { MessageQuotaResponse } from "../../model/messageQuotaResponse.js"; +import { MulticastRequest } from "../../model/multicastRequest.js"; +import { NarrowcastProgressResponse } from "../../model/narrowcastProgressResponse.js"; +import { NarrowcastRequest } from "../../model/narrowcastRequest.js"; +import { NumberOfMessagesResponse } from "../../model/numberOfMessagesResponse.js"; +import { PnpMessagesRequest } from "../../model/pnpMessagesRequest.js"; +import { PushMessageRequest } from "../../model/pushMessageRequest.js"; +import { PushMessageResponse } from "../../model/pushMessageResponse.js"; +import { QuotaConsumptionResponse } from "../../model/quotaConsumptionResponse.js"; +import { ReplyMessageRequest } from "../../model/replyMessageRequest.js"; +import { ReplyMessageResponse } from "../../model/replyMessageResponse.js"; +import { RichMenuAliasListResponse } from "../../model/richMenuAliasListResponse.js"; +import { RichMenuAliasResponse } from "../../model/richMenuAliasResponse.js"; +import { RichMenuBatchProgressResponse } from "../../model/richMenuBatchProgressResponse.js"; +import { RichMenuBatchRequest } from "../../model/richMenuBatchRequest.js"; +import { RichMenuBulkLinkRequest } from "../../model/richMenuBulkLinkRequest.js"; +import { RichMenuBulkUnlinkRequest } from "../../model/richMenuBulkUnlinkRequest.js"; +import { RichMenuIdResponse } from "../../model/richMenuIdResponse.js"; +import { RichMenuListResponse } from "../../model/richMenuListResponse.js"; +import { RichMenuRequest } from "../../model/richMenuRequest.js"; +import { RichMenuResponse } from "../../model/richMenuResponse.js"; +import { RoomMemberCountResponse } from "../../model/roomMemberCountResponse.js"; +import { RoomUserProfileResponse } from "../../model/roomUserProfileResponse.js"; +import { SetWebhookEndpointRequest } from "../../model/setWebhookEndpointRequest.js"; +import { TestWebhookEndpointRequest } from "../../model/testWebhookEndpointRequest.js"; +import { TestWebhookEndpointResponse } from "../../model/testWebhookEndpointResponse.js"; +import { UpdateRichMenuAliasRequest } from "../../model/updateRichMenuAliasRequest.js"; +import { UserProfileResponse } from "../../model/userProfileResponse.js"; +import { ValidateMessageRequest } from "../../model/validateMessageRequest.js"; import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; describe("MessagingApiClient", () => { diff --git a/lib/middleware.ts b/lib/middleware.ts index d34d56e22..2b56a9f6a 100644 --- a/lib/middleware.ts +++ b/lib/middleware.ts @@ -1,7 +1,7 @@ import * as http from "node:http"; -import { JSONParseError, SignatureValidationFailed } from "./exceptions"; -import * as Types from "./types"; -import validateSignature from "./validate-signature"; +import { JSONParseError, SignatureValidationFailed } from "./exceptions.js"; +import * as Types from "./types.js"; +import validateSignature from "./validate-signature.js"; export type Request = http.IncomingMessage & { body: any }; export type Response = http.ServerResponse; diff --git a/lib/module-attach/api.ts b/lib/module-attach/api.ts index eeedcdab6..ea34fcbaf 100644 --- a/lib/module-attach/api.ts +++ b/lib/module-attach/api.ts @@ -1,3 +1,3 @@ // This is the entrypoint for the package -export * from "./api/apis"; -export * from "./model/models"; +export * from "./api/apis.js"; +export * from "./model/models.js"; diff --git a/lib/module-attach/api/apis.ts b/lib/module-attach/api/apis.ts index bb09d6851..8bc77ba9d 100644 --- a/lib/module-attach/api/apis.ts +++ b/lib/module-attach/api/apis.ts @@ -1 +1 @@ -export { LineModuleAttachClient } from "./lineModuleAttachClient"; +export { LineModuleAttachClient } from "./lineModuleAttachClient.js"; diff --git a/lib/module-attach/api/lineModuleAttachClient.ts b/lib/module-attach/api/lineModuleAttachClient.ts index 8b9eb4f07..d6be6d907 100644 --- a/lib/module-attach/api/lineModuleAttachClient.ts +++ b/lib/module-attach/api/lineModuleAttachClient.ts @@ -11,13 +11,15 @@ */ /* tslint:disable:no-unused-locals */ -import { AttachModuleResponse } from "../model/attachModuleResponse"; +import { AttachModuleResponse } from "../model/attachModuleResponse.js"; -import * as Types from "../../types"; -import { ensureJSON } from "../../utils"; +import * as Types from "../../types.js"; +import { ensureJSON } from "../../utils.js"; import { Readable } from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/lib/module-attach/model/models.ts b/lib/module-attach/model/models.ts index 490661810..9b4f986af 100644 --- a/lib/module-attach/model/models.ts +++ b/lib/module-attach/model/models.ts @@ -1 +1 @@ -export * from "./attachModuleResponse"; +export * from "./attachModuleResponse.js"; diff --git a/lib/module-attach/tests/api/LineModuleAttachClientTest.spec.ts b/lib/module-attach/tests/api/LineModuleAttachClientTest.spec.ts index d7c9f0081..940e2a213 100644 --- a/lib/module-attach/tests/api/LineModuleAttachClientTest.spec.ts +++ b/lib/module-attach/tests/api/LineModuleAttachClientTest.spec.ts @@ -1,10 +1,12 @@ -import { LineModuleAttachClient } from "../../api"; +import { LineModuleAttachClient } from "../../api.js"; -import { AttachModuleResponse } from "../../model/attachModuleResponse"; +import { AttachModuleResponse } from "../../model/attachModuleResponse.js"; import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; describe("LineModuleAttachClient", () => { diff --git a/lib/module/api.ts b/lib/module/api.ts index eeedcdab6..ea34fcbaf 100644 --- a/lib/module/api.ts +++ b/lib/module/api.ts @@ -1,3 +1,3 @@ // This is the entrypoint for the package -export * from "./api/apis"; -export * from "./model/models"; +export * from "./api/apis.js"; +export * from "./model/models.js"; diff --git a/lib/module/api/apis.ts b/lib/module/api/apis.ts index b5f45afa2..b22810428 100644 --- a/lib/module/api/apis.ts +++ b/lib/module/api/apis.ts @@ -1 +1 @@ -export { LineModuleClient } from "./lineModuleClient"; +export { LineModuleClient } from "./lineModuleClient.js"; diff --git a/lib/module/api/lineModuleClient.ts b/lib/module/api/lineModuleClient.ts index cc76e2ddc..f41081522 100644 --- a/lib/module/api/lineModuleClient.ts +++ b/lib/module/api/lineModuleClient.ts @@ -11,15 +11,17 @@ */ /* tslint:disable:no-unused-locals */ -import { AcquireChatControlRequest } from "../model/acquireChatControlRequest"; -import { DetachModuleRequest } from "../model/detachModuleRequest"; -import { GetModulesResponse } from "../model/getModulesResponse"; +import { AcquireChatControlRequest } from "../model/acquireChatControlRequest.js"; +import { DetachModuleRequest } from "../model/detachModuleRequest.js"; +import { GetModulesResponse } from "../model/getModulesResponse.js"; -import * as Types from "../../types"; -import { ensureJSON } from "../../utils"; +import * as Types from "../../types.js"; +import { ensureJSON } from "../../utils.js"; import { Readable } from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/lib/module/model/getModulesResponse.ts b/lib/module/model/getModulesResponse.ts index cbc1b7bc1..5b71b5503 100644 --- a/lib/module/model/getModulesResponse.ts +++ b/lib/module/model/getModulesResponse.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { ModuleBot } from "./moduleBot"; +import { ModuleBot } from "./moduleBot.js"; /** * List of bots to which the module is attached diff --git a/lib/module/model/models.ts b/lib/module/model/models.ts index 219f4a999..6e9922510 100644 --- a/lib/module/model/models.ts +++ b/lib/module/model/models.ts @@ -1,4 +1,4 @@ -export * from "./acquireChatControlRequest"; -export * from "./detachModuleRequest"; -export * from "./getModulesResponse"; -export * from "./moduleBot"; +export * from "./acquireChatControlRequest.js"; +export * from "./detachModuleRequest.js"; +export * from "./getModulesResponse.js"; +export * from "./moduleBot.js"; diff --git a/lib/module/tests/api/LineModuleClientTest.spec.ts b/lib/module/tests/api/LineModuleClientTest.spec.ts index 9132ba8a4..f94ef57ca 100644 --- a/lib/module/tests/api/LineModuleClientTest.spec.ts +++ b/lib/module/tests/api/LineModuleClientTest.spec.ts @@ -1,12 +1,14 @@ -import { LineModuleClient } from "../../api"; +import { LineModuleClient } from "../../api.js"; -import { AcquireChatControlRequest } from "../../model/acquireChatControlRequest"; -import { DetachModuleRequest } from "../../model/detachModuleRequest"; -import { GetModulesResponse } from "../../model/getModulesResponse"; +import { AcquireChatControlRequest } from "../../model/acquireChatControlRequest.js"; +import { DetachModuleRequest } from "../../model/detachModuleRequest.js"; +import { GetModulesResponse } from "../../model/getModulesResponse.js"; import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; describe("LineModuleClient", () => { diff --git a/lib/shop/api.ts b/lib/shop/api.ts index eeedcdab6..ea34fcbaf 100644 --- a/lib/shop/api.ts +++ b/lib/shop/api.ts @@ -1,3 +1,3 @@ // This is the entrypoint for the package -export * from "./api/apis"; -export * from "./model/models"; +export * from "./api/apis.js"; +export * from "./model/models.js"; diff --git a/lib/shop/api/apis.ts b/lib/shop/api/apis.ts index 8c160c6bd..82d1f2274 100644 --- a/lib/shop/api/apis.ts +++ b/lib/shop/api/apis.ts @@ -1 +1 @@ -export { ShopClient } from "./shopClient"; +export { ShopClient } from "./shopClient.js"; diff --git a/lib/shop/api/shopClient.ts b/lib/shop/api/shopClient.ts index 17f42bf91..df05c6ad8 100644 --- a/lib/shop/api/shopClient.ts +++ b/lib/shop/api/shopClient.ts @@ -11,13 +11,15 @@ */ /* tslint:disable:no-unused-locals */ -import { MissionStickerRequest } from "../model/missionStickerRequest"; +import { MissionStickerRequest } from "../model/missionStickerRequest.js"; -import * as Types from "../../types"; -import { ensureJSON } from "../../utils"; +import * as Types from "../../types.js"; +import { ensureJSON } from "../../utils.js"; import { Readable } from "node:stream"; -import HTTPFetchClient, { convertResponseToReadable } from "../../http-fetch"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../../http-fetch.js"; // =============================================== // This file is autogenerated - Please do not edit diff --git a/lib/shop/model/models.ts b/lib/shop/model/models.ts index ffbf7100a..a77acc6d8 100644 --- a/lib/shop/model/models.ts +++ b/lib/shop/model/models.ts @@ -1,2 +1,2 @@ -export * from "./errorResponse"; -export * from "./missionStickerRequest"; +export * from "./errorResponse.js"; +export * from "./missionStickerRequest.js"; diff --git a/lib/shop/tests/api/ShopClientTest.spec.ts b/lib/shop/tests/api/ShopClientTest.spec.ts index 957d5d229..0fcdc284a 100644 --- a/lib/shop/tests/api/ShopClientTest.spec.ts +++ b/lib/shop/tests/api/ShopClientTest.spec.ts @@ -1,10 +1,12 @@ -import { ShopClient } from "../../api"; +import { ShopClient } from "../../api.js"; -import { MissionStickerRequest } from "../../model/missionStickerRequest"; +import { MissionStickerRequest } from "../../model/missionStickerRequest.js"; import { createServer } from "node:http"; import { deepEqual, equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + const channel_access_token = "test_channel_access_token"; describe("ShopClient", () => { diff --git a/lib/utils.ts b/lib/utils.ts index 5c37736cd..9c3dfa026 100644 --- a/lib/utils.ts +++ b/lib/utils.ts @@ -1,4 +1,4 @@ -import { JSONParseError } from "./exceptions"; +import { JSONParseError } from "./exceptions.js"; export function toArray(maybeArr: T | T[]): T[] { return Array.isArray(maybeArr) ? maybeArr : [maybeArr]; diff --git a/lib/webhook/api.ts b/lib/webhook/api.ts index 00dd34ea2..c906fd9c3 100644 --- a/lib/webhook/api.ts +++ b/lib/webhook/api.ts @@ -1 +1 @@ -export * from "./model/models"; +export * from "./model/models.js"; diff --git a/lib/webhook/model/accountLinkEvent.ts b/lib/webhook/model/accountLinkEvent.ts index 024392423..ca1c42b6d 100644 --- a/lib/webhook/model/accountLinkEvent.ts +++ b/lib/webhook/model/accountLinkEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { LinkContent } from "./linkContent"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { LinkContent } from "./linkContent.js"; +import { Source } from "./source.js"; /** * Event object for when a user has linked their LINE account with a provider\'s service account. You can reply to account link events. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type AccountLinkEvent = EventBase & { type: "accountLink"; diff --git a/lib/webhook/model/activatedEvent.ts b/lib/webhook/model/activatedEvent.ts index e2c14820a..3508e8de6 100644 --- a/lib/webhook/model/activatedEvent.ts +++ b/lib/webhook/model/activatedEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { ChatControl } from "./chatControl"; -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; +import { ChatControl } from "./chatControl.js"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; /** * This event indicates that the module channel has been switched to Active Channel by calling the Acquire Control API. Sent to the webhook URL server of the module channel. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type ActivatedEvent = EventBase & { type: "activated"; diff --git a/lib/webhook/model/allMentionee.ts b/lib/webhook/model/allMentionee.ts index c94ff3d01..c2dfed5a5 100644 --- a/lib/webhook/model/allMentionee.ts +++ b/lib/webhook/model/allMentionee.ts @@ -10,12 +10,12 @@ * Do not edit the class manually. */ -import { Mentionee } from "./mentionee"; +import { Mentionee } from "./mentionee.js"; /** * Mentioned target is entire group */ -import { MentioneeBase } from "./models"; +import { MentioneeBase } from "./models.js"; export type AllMentionee = MentioneeBase & { type: "all"; diff --git a/lib/webhook/model/attachedModuleContent.ts b/lib/webhook/model/attachedModuleContent.ts index ff07aab3f..e7f25ccf1 100644 --- a/lib/webhook/model/attachedModuleContent.ts +++ b/lib/webhook/model/attachedModuleContent.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { ModuleContent } from "./moduleContent"; +import { ModuleContent } from "./moduleContent.js"; -import { ModuleContentBase } from "./models"; +import { ModuleContentBase } from "./models.js"; export type AttachedModuleContent = ModuleContentBase & { type: "attached"; diff --git a/lib/webhook/model/audioMessageContent.ts b/lib/webhook/model/audioMessageContent.ts index 6cd23afa5..c2f474da8 100644 --- a/lib/webhook/model/audioMessageContent.ts +++ b/lib/webhook/model/audioMessageContent.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { ContentProvider } from "./contentProvider"; -import { MessageContent } from "./messageContent"; +import { ContentProvider } from "./contentProvider.js"; +import { MessageContent } from "./messageContent.js"; -import { MessageContentBase } from "./models"; +import { MessageContentBase } from "./models.js"; export type AudioMessageContent = MessageContentBase & { type: "audio"; diff --git a/lib/webhook/model/beaconEvent.ts b/lib/webhook/model/beaconEvent.ts index 7339c3902..d830cf100 100644 --- a/lib/webhook/model/beaconEvent.ts +++ b/lib/webhook/model/beaconEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { BeaconContent } from "./beaconContent"; -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; +import { BeaconContent } from "./beaconContent.js"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; /** * Event object for when a user enters the range of a LINE Beacon. You can reply to beacon events. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type BeaconEvent = EventBase & { type: "beacon"; diff --git a/lib/webhook/model/botResumedEvent.ts b/lib/webhook/model/botResumedEvent.ts index b079bbf17..f7c2d37fe 100644 --- a/lib/webhook/model/botResumedEvent.ts +++ b/lib/webhook/model/botResumedEvent.ts @@ -10,15 +10,15 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; /** * This event indicates that the LINE Official Account has returned from the suspended state. Sent to the webhook URL server of the module channel. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type BotResumedEvent = EventBase & { type: "botResumed"; diff --git a/lib/webhook/model/botSuspendedEvent.ts b/lib/webhook/model/botSuspendedEvent.ts index fabf6aecc..d3f92294c 100644 --- a/lib/webhook/model/botSuspendedEvent.ts +++ b/lib/webhook/model/botSuspendedEvent.ts @@ -10,15 +10,15 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; /** * This event indicates that the LINE Official Account has been suspended (Suspend). Sent to the webhook URL server of the module channel. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type BotSuspendedEvent = EventBase & { type: "botSuspended"; diff --git a/lib/webhook/model/callbackRequest.ts b/lib/webhook/model/callbackRequest.ts index e7aff1d7d..f9131e1cf 100644 --- a/lib/webhook/model/callbackRequest.ts +++ b/lib/webhook/model/callbackRequest.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Event } from "./event"; +import { Event } from "./event.js"; /** * The request body contains a JSON object with the user ID of a bot that should receive webhook events and an array of webhook event objects. diff --git a/lib/webhook/model/deactivatedEvent.ts b/lib/webhook/model/deactivatedEvent.ts index 8249bf1be..54482cb0e 100644 --- a/lib/webhook/model/deactivatedEvent.ts +++ b/lib/webhook/model/deactivatedEvent.ts @@ -10,15 +10,15 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; /** * This event indicates that the module channel has been switched to Standby Channel by calling Acquire Control API or Release Control API. Sent to the webhook URL server of the module channel. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type DeactivatedEvent = EventBase & { type: "deactivated"; diff --git a/lib/webhook/model/detachedModuleContent.ts b/lib/webhook/model/detachedModuleContent.ts index 8c94c829d..1de6a29b8 100644 --- a/lib/webhook/model/detachedModuleContent.ts +++ b/lib/webhook/model/detachedModuleContent.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { ModuleContent } from "./moduleContent"; +import { ModuleContent } from "./moduleContent.js"; -import { ModuleContentBase } from "./models"; +import { ModuleContentBase } from "./models.js"; export type DetachedModuleContent = ModuleContentBase & { type: "detached"; diff --git a/lib/webhook/model/event.ts b/lib/webhook/model/event.ts index 5081d5d90..eabbf13c9 100644 --- a/lib/webhook/model/event.ts +++ b/lib/webhook/model/event.ts @@ -10,29 +10,29 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; -import { AccountLinkEvent } from "./models"; -import { ActivatedEvent } from "./models"; -import { BeaconEvent } from "./models"; -import { BotResumedEvent } from "./models"; -import { BotSuspendedEvent } from "./models"; -import { DeactivatedEvent } from "./models"; -import { PnpDeliveryCompletionEvent } from "./models"; -import { FollowEvent } from "./models"; -import { JoinEvent } from "./models"; -import { LeaveEvent } from "./models"; -import { MemberJoinedEvent } from "./models"; -import { MemberLeftEvent } from "./models"; -import { MessageEvent } from "./models"; -import { ModuleEvent } from "./models"; -import { PostbackEvent } from "./models"; -import { ThingsEvent } from "./models"; -import { UnfollowEvent } from "./models"; -import { UnsendEvent } from "./models"; -import { VideoPlayCompleteEvent } from "./models"; +import { AccountLinkEvent } from "./models.js"; +import { ActivatedEvent } from "./models.js"; +import { BeaconEvent } from "./models.js"; +import { BotResumedEvent } from "./models.js"; +import { BotSuspendedEvent } from "./models.js"; +import { DeactivatedEvent } from "./models.js"; +import { PnpDeliveryCompletionEvent } from "./models.js"; +import { FollowEvent } from "./models.js"; +import { JoinEvent } from "./models.js"; +import { LeaveEvent } from "./models.js"; +import { MemberJoinedEvent } from "./models.js"; +import { MemberLeftEvent } from "./models.js"; +import { MessageEvent } from "./models.js"; +import { ModuleEvent } from "./models.js"; +import { PostbackEvent } from "./models.js"; +import { ThingsEvent } from "./models.js"; +import { UnfollowEvent } from "./models.js"; +import { UnsendEvent } from "./models.js"; +import { VideoPlayCompleteEvent } from "./models.js"; export type Event = | AccountLinkEvent // accountLink diff --git a/lib/webhook/model/fileMessageContent.ts b/lib/webhook/model/fileMessageContent.ts index 2aa7bb9f4..c0ca6816f 100644 --- a/lib/webhook/model/fileMessageContent.ts +++ b/lib/webhook/model/fileMessageContent.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { MessageContent } from "./messageContent"; +import { MessageContent } from "./messageContent.js"; -import { MessageContentBase } from "./models"; +import { MessageContentBase } from "./models.js"; export type FileMessageContent = MessageContentBase & { type: "file"; diff --git a/lib/webhook/model/followEvent.ts b/lib/webhook/model/followEvent.ts index 791eef361..e2c85515a 100644 --- a/lib/webhook/model/followEvent.ts +++ b/lib/webhook/model/followEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { FollowDetail } from "./followDetail"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { FollowDetail } from "./followDetail.js"; +import { Source } from "./source.js"; /** * Event object for when your LINE Official Account is added as a friend (or unblocked). You can reply to follow events. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type FollowEvent = EventBase & { type: "follow"; diff --git a/lib/webhook/model/groupSource.ts b/lib/webhook/model/groupSource.ts index d33c7d00a..bfd4a9403 100644 --- a/lib/webhook/model/groupSource.ts +++ b/lib/webhook/model/groupSource.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Source } from "./source"; +import { Source } from "./source.js"; -import { SourceBase } from "./models"; +import { SourceBase } from "./models.js"; export type GroupSource = SourceBase & { type: "group"; diff --git a/lib/webhook/model/imageMessageContent.ts b/lib/webhook/model/imageMessageContent.ts index f3b2b36d0..83bf83873 100644 --- a/lib/webhook/model/imageMessageContent.ts +++ b/lib/webhook/model/imageMessageContent.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { ContentProvider } from "./contentProvider"; -import { ImageSet } from "./imageSet"; -import { MessageContent } from "./messageContent"; +import { ContentProvider } from "./contentProvider.js"; +import { ImageSet } from "./imageSet.js"; +import { MessageContent } from "./messageContent.js"; -import { MessageContentBase } from "./models"; +import { MessageContentBase } from "./models.js"; export type ImageMessageContent = MessageContentBase & { type: "image"; diff --git a/lib/webhook/model/joinEvent.ts b/lib/webhook/model/joinEvent.ts index 8a39dd3e2..b25736cf0 100644 --- a/lib/webhook/model/joinEvent.ts +++ b/lib/webhook/model/joinEvent.ts @@ -10,15 +10,15 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; /** * Event object for when your LINE Official Account joins a group chat or multi-person chat. You can reply to join events. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type JoinEvent = EventBase & { type: "join"; diff --git a/lib/webhook/model/joinedMembers.ts b/lib/webhook/model/joinedMembers.ts index 397325fe4..2d38fbf9a 100644 --- a/lib/webhook/model/joinedMembers.ts +++ b/lib/webhook/model/joinedMembers.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { UserSource } from "./userSource"; +import { UserSource } from "./userSource.js"; export type JoinedMembers = { /** diff --git a/lib/webhook/model/leaveEvent.ts b/lib/webhook/model/leaveEvent.ts index 36dcf1b4f..438a1eb6f 100644 --- a/lib/webhook/model/leaveEvent.ts +++ b/lib/webhook/model/leaveEvent.ts @@ -10,15 +10,15 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; /** * Event object for when a user removes your LINE Official Account from a group chat or when your LINE Official Account leaves a group chat or multi-person chat. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type LeaveEvent = EventBase & { type: "leave"; diff --git a/lib/webhook/model/leftMembers.ts b/lib/webhook/model/leftMembers.ts index 73214b4d2..574ade25c 100644 --- a/lib/webhook/model/leftMembers.ts +++ b/lib/webhook/model/leftMembers.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { UserSource } from "./userSource"; +import { UserSource } from "./userSource.js"; export type LeftMembers = { /** diff --git a/lib/webhook/model/linkThingsContent.ts b/lib/webhook/model/linkThingsContent.ts index 49acef1dd..6de547d4a 100644 --- a/lib/webhook/model/linkThingsContent.ts +++ b/lib/webhook/model/linkThingsContent.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { ThingsContent } from "./thingsContent"; +import { ThingsContent } from "./thingsContent.js"; -import { ThingsContentBase } from "./models"; +import { ThingsContentBase } from "./models.js"; export type LinkThingsContent = ThingsContentBase & { type: "link"; diff --git a/lib/webhook/model/locationMessageContent.ts b/lib/webhook/model/locationMessageContent.ts index 7581c77c8..6b19a7cbd 100644 --- a/lib/webhook/model/locationMessageContent.ts +++ b/lib/webhook/model/locationMessageContent.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { MessageContent } from "./messageContent"; +import { MessageContent } from "./messageContent.js"; -import { MessageContentBase } from "./models"; +import { MessageContentBase } from "./models.js"; export type LocationMessageContent = MessageContentBase & { type: "location"; diff --git a/lib/webhook/model/memberJoinedEvent.ts b/lib/webhook/model/memberJoinedEvent.ts index 52f5ffa17..d661d3267 100644 --- a/lib/webhook/model/memberJoinedEvent.ts +++ b/lib/webhook/model/memberJoinedEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { JoinedMembers } from "./joinedMembers"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { JoinedMembers } from "./joinedMembers.js"; +import { Source } from "./source.js"; /** * Event object for when a user joins a group chat or multi-person chat that the LINE Official Account is in. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type MemberJoinedEvent = EventBase & { type: "memberJoined"; diff --git a/lib/webhook/model/memberLeftEvent.ts b/lib/webhook/model/memberLeftEvent.ts index 913449423..6d2ea8a3e 100644 --- a/lib/webhook/model/memberLeftEvent.ts +++ b/lib/webhook/model/memberLeftEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { LeftMembers } from "./leftMembers"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { LeftMembers } from "./leftMembers.js"; +import { Source } from "./source.js"; /** * Event object for when a user leaves a group chat or multi-person chat that the LINE Official Account is in. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type MemberLeftEvent = EventBase & { type: "memberLeft"; diff --git a/lib/webhook/model/mention.ts b/lib/webhook/model/mention.ts index e0be19c3e..caa668e22 100644 --- a/lib/webhook/model/mention.ts +++ b/lib/webhook/model/mention.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { Mentionee } from "./mentionee"; +import { Mentionee } from "./mentionee.js"; export type Mention = { /** diff --git a/lib/webhook/model/mentionee.ts b/lib/webhook/model/mentionee.ts index 9acfe4870..74688185f 100644 --- a/lib/webhook/model/mentionee.ts +++ b/lib/webhook/model/mentionee.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { AllMentionee } from "./models"; -import { UserMentionee } from "./models"; +import { AllMentionee } from "./models.js"; +import { UserMentionee } from "./models.js"; export type Mentionee = | AllMentionee // all diff --git a/lib/webhook/model/messageContent.ts b/lib/webhook/model/messageContent.ts index fb27d3678..2a6074085 100644 --- a/lib/webhook/model/messageContent.ts +++ b/lib/webhook/model/messageContent.ts @@ -10,13 +10,13 @@ * Do not edit the class manually. */ -import { AudioMessageContent } from "./models"; -import { FileMessageContent } from "./models"; -import { ImageMessageContent } from "./models"; -import { LocationMessageContent } from "./models"; -import { StickerMessageContent } from "./models"; -import { TextMessageContent } from "./models"; -import { VideoMessageContent } from "./models"; +import { AudioMessageContent } from "./models.js"; +import { FileMessageContent } from "./models.js"; +import { ImageMessageContent } from "./models.js"; +import { LocationMessageContent } from "./models.js"; +import { StickerMessageContent } from "./models.js"; +import { TextMessageContent } from "./models.js"; +import { VideoMessageContent } from "./models.js"; export type MessageContent = | AudioMessageContent // audio diff --git a/lib/webhook/model/messageEvent.ts b/lib/webhook/model/messageEvent.ts index 47a777304..b72958c5e 100644 --- a/lib/webhook/model/messageEvent.ts +++ b/lib/webhook/model/messageEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { MessageContent } from "./messageContent"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { MessageContent } from "./messageContent.js"; +import { Source } from "./source.js"; /** * Webhook event object which contains the sent message. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type MessageEvent = EventBase & { type: "message"; diff --git a/lib/webhook/model/models.ts b/lib/webhook/model/models.ts index c7b21aee1..6cc1ba361 100644 --- a/lib/webhook/model/models.ts +++ b/lib/webhook/model/models.ts @@ -1,61 +1,61 @@ -export * from "./accountLinkEvent"; -export * from "./actionResult"; -export * from "./activatedEvent"; -export * from "./allMentionee"; -export * from "./attachedModuleContent"; -export * from "./audioMessageContent"; -export * from "./beaconContent"; -export * from "./beaconEvent"; -export * from "./botResumedEvent"; -export * from "./botSuspendedEvent"; -export * from "./callbackRequest"; -export * from "./chatControl"; -export * from "./contentProvider"; -export * from "./deactivatedEvent"; -export * from "./deliveryContext"; -export * from "./detachedModuleContent"; -export * from "./emoji"; -export * from "./event"; -export * from "./eventMode"; -export * from "./fileMessageContent"; -export * from "./followDetail"; -export * from "./followEvent"; -export * from "./groupSource"; -export * from "./imageMessageContent"; -export * from "./imageSet"; -export * from "./joinEvent"; -export * from "./joinedMembers"; -export * from "./leaveEvent"; -export * from "./leftMembers"; -export * from "./linkContent"; -export * from "./linkThingsContent"; -export * from "./locationMessageContent"; -export * from "./memberJoinedEvent"; -export * from "./memberLeftEvent"; -export * from "./mention"; -export * from "./mentionee"; -export * from "./messageContent"; -export * from "./messageEvent"; -export * from "./moduleContent"; -export * from "./moduleEvent"; -export * from "./pnpDelivery"; -export * from "./pnpDeliveryCompletionEvent"; -export * from "./postbackContent"; -export * from "./postbackEvent"; -export * from "./roomSource"; -export * from "./scenarioResult"; -export * from "./scenarioResultThingsContent"; -export * from "./source"; -export * from "./stickerMessageContent"; -export * from "./textMessageContent"; -export * from "./thingsContent"; -export * from "./thingsEvent"; -export * from "./unfollowEvent"; -export * from "./unlinkThingsContent"; -export * from "./unsendDetail"; -export * from "./unsendEvent"; -export * from "./userMentionee"; -export * from "./userSource"; -export * from "./videoMessageContent"; -export * from "./videoPlayComplete"; -export * from "./videoPlayCompleteEvent"; +export * from "./accountLinkEvent.js"; +export * from "./actionResult.js"; +export * from "./activatedEvent.js"; +export * from "./allMentionee.js"; +export * from "./attachedModuleContent.js"; +export * from "./audioMessageContent.js"; +export * from "./beaconContent.js"; +export * from "./beaconEvent.js"; +export * from "./botResumedEvent.js"; +export * from "./botSuspendedEvent.js"; +export * from "./callbackRequest.js"; +export * from "./chatControl.js"; +export * from "./contentProvider.js"; +export * from "./deactivatedEvent.js"; +export * from "./deliveryContext.js"; +export * from "./detachedModuleContent.js"; +export * from "./emoji.js"; +export * from "./event.js"; +export * from "./eventMode.js"; +export * from "./fileMessageContent.js"; +export * from "./followDetail.js"; +export * from "./followEvent.js"; +export * from "./groupSource.js"; +export * from "./imageMessageContent.js"; +export * from "./imageSet.js"; +export * from "./joinEvent.js"; +export * from "./joinedMembers.js"; +export * from "./leaveEvent.js"; +export * from "./leftMembers.js"; +export * from "./linkContent.js"; +export * from "./linkThingsContent.js"; +export * from "./locationMessageContent.js"; +export * from "./memberJoinedEvent.js"; +export * from "./memberLeftEvent.js"; +export * from "./mention.js"; +export * from "./mentionee.js"; +export * from "./messageContent.js"; +export * from "./messageEvent.js"; +export * from "./moduleContent.js"; +export * from "./moduleEvent.js"; +export * from "./pnpDelivery.js"; +export * from "./pnpDeliveryCompletionEvent.js"; +export * from "./postbackContent.js"; +export * from "./postbackEvent.js"; +export * from "./roomSource.js"; +export * from "./scenarioResult.js"; +export * from "./scenarioResultThingsContent.js"; +export * from "./source.js"; +export * from "./stickerMessageContent.js"; +export * from "./textMessageContent.js"; +export * from "./thingsContent.js"; +export * from "./thingsEvent.js"; +export * from "./unfollowEvent.js"; +export * from "./unlinkThingsContent.js"; +export * from "./unsendDetail.js"; +export * from "./unsendEvent.js"; +export * from "./userMentionee.js"; +export * from "./userSource.js"; +export * from "./videoMessageContent.js"; +export * from "./videoPlayComplete.js"; +export * from "./videoPlayCompleteEvent.js"; diff --git a/lib/webhook/model/moduleContent.ts b/lib/webhook/model/moduleContent.ts index 3e9c3abed..3f8141e20 100644 --- a/lib/webhook/model/moduleContent.ts +++ b/lib/webhook/model/moduleContent.ts @@ -10,8 +10,8 @@ * Do not edit the class manually. */ -import { AttachedModuleContent } from "./models"; -import { DetachedModuleContent } from "./models"; +import { AttachedModuleContent } from "./models.js"; +import { DetachedModuleContent } from "./models.js"; export type ModuleContent = | AttachedModuleContent // attached diff --git a/lib/webhook/model/moduleEvent.ts b/lib/webhook/model/moduleEvent.ts index 11cdb6cd5..bbbe35696 100644 --- a/lib/webhook/model/moduleEvent.ts +++ b/lib/webhook/model/moduleEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { ModuleContent } from "./moduleContent"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { ModuleContent } from "./moduleContent.js"; +import { Source } from "./source.js"; /** * This event indicates that the module channel has been attached to the LINE Official Account. Sent to the webhook URL server of the module channel. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type ModuleEvent = EventBase & { type: "module"; diff --git a/lib/webhook/model/pnpDeliveryCompletionEvent.ts b/lib/webhook/model/pnpDeliveryCompletionEvent.ts index 8dcf61ed2..66766052d 100644 --- a/lib/webhook/model/pnpDeliveryCompletionEvent.ts +++ b/lib/webhook/model/pnpDeliveryCompletionEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { PnpDelivery } from "./pnpDelivery"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { PnpDelivery } from "./pnpDelivery.js"; +import { Source } from "./source.js"; /** * When a request is made to the LINE notification messages API and delivery of the LINE notification message to the user is completed, a dedicated webhook event (delivery completion event) is sent from the LINE Platform to the webhook URL of the bot server. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type PnpDeliveryCompletionEvent = EventBase & { type: "delivery"; diff --git a/lib/webhook/model/postbackEvent.ts b/lib/webhook/model/postbackEvent.ts index 4be8aed11..f1ca5394f 100644 --- a/lib/webhook/model/postbackEvent.ts +++ b/lib/webhook/model/postbackEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { PostbackContent } from "./postbackContent"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { PostbackContent } from "./postbackContent.js"; +import { Source } from "./source.js"; /** * Event object for when a user performs a postback action which initiates a postback. You can reply to postback events. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type PostbackEvent = EventBase & { type: "postback"; diff --git a/lib/webhook/model/roomSource.ts b/lib/webhook/model/roomSource.ts index a5336fd61..b505d8b7a 100644 --- a/lib/webhook/model/roomSource.ts +++ b/lib/webhook/model/roomSource.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Source } from "./source"; +import { Source } from "./source.js"; -import { SourceBase } from "./models"; +import { SourceBase } from "./models.js"; export type RoomSource = SourceBase & { type: "room"; diff --git a/lib/webhook/model/scenarioResult.ts b/lib/webhook/model/scenarioResult.ts index 9c42d5c7a..29cd83e66 100644 --- a/lib/webhook/model/scenarioResult.ts +++ b/lib/webhook/model/scenarioResult.ts @@ -10,7 +10,7 @@ * Do not edit the class manually. */ -import { ActionResult } from "./actionResult"; +import { ActionResult } from "./actionResult.js"; export type ScenarioResult = { /** diff --git a/lib/webhook/model/scenarioResultThingsContent.ts b/lib/webhook/model/scenarioResultThingsContent.ts index c9e0d9991..f430b23ec 100644 --- a/lib/webhook/model/scenarioResultThingsContent.ts +++ b/lib/webhook/model/scenarioResultThingsContent.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { ScenarioResult } from "./scenarioResult"; -import { ThingsContent } from "./thingsContent"; +import { ScenarioResult } from "./scenarioResult.js"; +import { ThingsContent } from "./thingsContent.js"; -import { ThingsContentBase } from "./models"; +import { ThingsContentBase } from "./models.js"; export type ScenarioResultThingsContent = ThingsContentBase & { type: "scenarioResult"; diff --git a/lib/webhook/model/source.ts b/lib/webhook/model/source.ts index d1f77b823..e80dfa09d 100644 --- a/lib/webhook/model/source.ts +++ b/lib/webhook/model/source.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { GroupSource } from "./models"; -import { RoomSource } from "./models"; -import { UserSource } from "./models"; +import { GroupSource } from "./models.js"; +import { RoomSource } from "./models.js"; +import { UserSource } from "./models.js"; export type Source = | GroupSource // group diff --git a/lib/webhook/model/stickerMessageContent.ts b/lib/webhook/model/stickerMessageContent.ts index 524ac246d..e5ba5838d 100644 --- a/lib/webhook/model/stickerMessageContent.ts +++ b/lib/webhook/model/stickerMessageContent.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { MessageContent } from "./messageContent"; +import { MessageContent } from "./messageContent.js"; -import { MessageContentBase } from "./models"; +import { MessageContentBase } from "./models.js"; export type StickerMessageContent = MessageContentBase & { type: "sticker"; diff --git a/lib/webhook/model/textMessageContent.ts b/lib/webhook/model/textMessageContent.ts index 37d9771ce..d14fa4faf 100644 --- a/lib/webhook/model/textMessageContent.ts +++ b/lib/webhook/model/textMessageContent.ts @@ -10,11 +10,11 @@ * Do not edit the class manually. */ -import { Emoji } from "./emoji"; -import { Mention } from "./mention"; -import { MessageContent } from "./messageContent"; +import { Emoji } from "./emoji.js"; +import { Mention } from "./mention.js"; +import { MessageContent } from "./messageContent.js"; -import { MessageContentBase } from "./models"; +import { MessageContentBase } from "./models.js"; export type TextMessageContent = MessageContentBase & { type: "text"; diff --git a/lib/webhook/model/thingsContent.ts b/lib/webhook/model/thingsContent.ts index 66c4d262c..02955dbdc 100644 --- a/lib/webhook/model/thingsContent.ts +++ b/lib/webhook/model/thingsContent.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { LinkThingsContent } from "./models"; -import { ScenarioResultThingsContent } from "./models"; -import { UnlinkThingsContent } from "./models"; +import { LinkThingsContent } from "./models.js"; +import { ScenarioResultThingsContent } from "./models.js"; +import { UnlinkThingsContent } from "./models.js"; export type ThingsContent = | LinkThingsContent // link diff --git a/lib/webhook/model/thingsEvent.ts b/lib/webhook/model/thingsEvent.ts index cea3a5a6c..175e81b44 100644 --- a/lib/webhook/model/thingsEvent.ts +++ b/lib/webhook/model/thingsEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; -import { ThingsContent } from "./thingsContent"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; +import { ThingsContent } from "./thingsContent.js"; /** * Indicates that a user linked a device with LINE. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type ThingsEvent = EventBase & { type: "things"; diff --git a/lib/webhook/model/unfollowEvent.ts b/lib/webhook/model/unfollowEvent.ts index b167e4bba..ebd64ba77 100644 --- a/lib/webhook/model/unfollowEvent.ts +++ b/lib/webhook/model/unfollowEvent.ts @@ -10,15 +10,15 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; /** * Event object for when your LINE Official Account is blocked. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type UnfollowEvent = EventBase & { type: "unfollow"; diff --git a/lib/webhook/model/unlinkThingsContent.ts b/lib/webhook/model/unlinkThingsContent.ts index 33ccddb79..900f94269 100644 --- a/lib/webhook/model/unlinkThingsContent.ts +++ b/lib/webhook/model/unlinkThingsContent.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { ThingsContent } from "./thingsContent"; +import { ThingsContent } from "./thingsContent.js"; -import { ThingsContentBase } from "./models"; +import { ThingsContentBase } from "./models.js"; export type UnlinkThingsContent = ThingsContentBase & { type: "unlink"; diff --git a/lib/webhook/model/unsendEvent.ts b/lib/webhook/model/unsendEvent.ts index 892f2acbf..2148cca72 100644 --- a/lib/webhook/model/unsendEvent.ts +++ b/lib/webhook/model/unsendEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; -import { UnsendDetail } from "./unsendDetail"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; +import { UnsendDetail } from "./unsendDetail.js"; /** * Event object for when the user unsends a message. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type UnsendEvent = EventBase & { type: "unsend"; diff --git a/lib/webhook/model/userMentionee.ts b/lib/webhook/model/userMentionee.ts index 37091e293..99c8c7627 100644 --- a/lib/webhook/model/userMentionee.ts +++ b/lib/webhook/model/userMentionee.ts @@ -10,12 +10,12 @@ * Do not edit the class manually. */ -import { Mentionee } from "./mentionee"; +import { Mentionee } from "./mentionee.js"; /** * Mentioned target is user */ -import { MentioneeBase } from "./models"; +import { MentioneeBase } from "./models.js"; export type UserMentionee = MentioneeBase & { type: "user"; diff --git a/lib/webhook/model/userSource.ts b/lib/webhook/model/userSource.ts index 7213853f9..15a656f39 100644 --- a/lib/webhook/model/userSource.ts +++ b/lib/webhook/model/userSource.ts @@ -10,9 +10,9 @@ * Do not edit the class manually. */ -import { Source } from "./source"; +import { Source } from "./source.js"; -import { SourceBase } from "./models"; +import { SourceBase } from "./models.js"; export type UserSource = SourceBase & { type: "user"; diff --git a/lib/webhook/model/videoMessageContent.ts b/lib/webhook/model/videoMessageContent.ts index fbe80ccc6..436345eff 100644 --- a/lib/webhook/model/videoMessageContent.ts +++ b/lib/webhook/model/videoMessageContent.ts @@ -10,10 +10,10 @@ * Do not edit the class manually. */ -import { ContentProvider } from "./contentProvider"; -import { MessageContent } from "./messageContent"; +import { ContentProvider } from "./contentProvider.js"; +import { MessageContent } from "./messageContent.js"; -import { MessageContentBase } from "./models"; +import { MessageContentBase } from "./models.js"; export type VideoMessageContent = MessageContentBase & { type: "video"; diff --git a/lib/webhook/model/videoPlayCompleteEvent.ts b/lib/webhook/model/videoPlayCompleteEvent.ts index 5b7458230..21476e681 100644 --- a/lib/webhook/model/videoPlayCompleteEvent.ts +++ b/lib/webhook/model/videoPlayCompleteEvent.ts @@ -10,16 +10,16 @@ * Do not edit the class manually. */ -import { DeliveryContext } from "./deliveryContext"; -import { Event } from "./event"; -import { EventMode } from "./eventMode"; -import { Source } from "./source"; -import { VideoPlayComplete } from "./videoPlayComplete"; +import { DeliveryContext } from "./deliveryContext.js"; +import { Event } from "./event.js"; +import { EventMode } from "./eventMode.js"; +import { Source } from "./source.js"; +import { VideoPlayComplete } from "./videoPlayComplete.js"; /** * Event for when a user finishes viewing a video at least once with the specified trackingId sent by the LINE Official Account. */ -import { EventBase } from "./models"; +import { EventBase } from "./models.js"; export type VideoPlayCompleteEvent = EventBase & { type: "videoPlayComplete"; diff --git a/package-lock.json b/package-lock.json index b2527ba2b..d3599320a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,18 +15,19 @@ "@types/express": "4.17.21", "@types/finalhandler": "1.2.3", "@types/mocha": "10.0.6", + "@vitest/coverage-v8": "^1.4.0", "express": "4.19.2", "finalhandler": "1.2.0", "husky": "9.0.11", - "mocha": "10.4.0", - "msw": "2.2.13", - "nyc": "15.1.0", + "msw": "2.2.11", "prettier": "3.2.5", "ts-node": "10.9.2", "typedoc": "^0.25.1", "typedoc-plugin-markdown": "^3.16.0", "typescript": "5.4.3", - "vitepress": "^1.0.1" + "vite": "^5.2.7", + "vitepress": "^1.0.1", + "vitest": "^1.4.0" }, "engines": { "node": ">=18" @@ -209,327 +210,33 @@ "@algolia/requester-common": "4.22.1" } }, - "node_modules/@babel/code-frame": { - "version": "7.22.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.22.13.tgz", - "integrity": "sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==", - "dev": true, - "dependencies": { - "@babel/highlight": "^7.22.13", - "chalk": "^2.4.2" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/code-frame/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/code-frame/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/code-frame/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/code-frame/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/code-frame/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.15.0", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.15.0.tgz", - "integrity": "sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.15.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.15.5.tgz", - "integrity": "sha512-pYgXxiwAgQpgM1bNkZsDEq85f0ggXMA5L7c+o3tskGMh2BunCI9QUwB9Z4jpvXUOuMdyGKiGKQiRe11VS6Jzvg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.14.5", - "@babel/generator": "^7.15.4", - "@babel/helper-compilation-targets": "^7.15.4", - "@babel/helper-module-transforms": "^7.15.4", - "@babel/helpers": "^7.15.4", - "@babel/parser": "^7.15.5", - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.4", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.1.2", - "semver": "^6.3.0", - "source-map": "^0.5.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@babel/core/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/@babel/generator": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", - "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", "dev": true, "dependencies": { - "@babel/types": "^7.23.0", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { - "node": ">=6.9.0" + "node": ">=6.0.0" } }, - "node_modules/@babel/generator/node_modules/@jridgewell/trace-mapping": { - "version": "0.3.19", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.19.tgz", - "integrity": "sha512-kf37QtfW+Hwx/buWGMPcR60iF9ziHa6r/CZJIHbmcm4+0qrXiVdxegAH0F6yddEVQ7zdkjcGCgCzUu+BcbhQxw==", + "node_modules/@ampproject/remapping/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.15.4.tgz", - "integrity": "sha512-rMWPCirulnPSe4d+gwdWXLfAXTTBj8M3guAf5xFQJ0nvFY7tfNAFnWdqaHegHlgDZOCT4qvhF3BYlSJag8yhqQ==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.15.0", - "@babel/helper-validator-option": "^7.14.5", - "browserslist": "^4.16.6", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.15.4.tgz", - "integrity": "sha512-cokOMkxC/BTyNP1AlY25HuBWM32iCEsLPI4BHDpJCHHm1FU2E7dKWWIXJgQgSFiu4lp8q3bL1BIKwqkSUviqtA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.15.4.tgz", - "integrity": "sha512-jeAHZbzUwdW/xHgHQ3QmWR4Jg6j15q4w/gCfwZvtqOxoo5DKtLHk8Bsf4c5RZRC7NmLEs+ohkdq8jFefuvIxAA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.15.4.tgz", - "integrity": "sha512-9fHHSGE9zTC++KuXLZcB5FKgvlV83Ox+NLUmQTawovwlJ85+QMhk1CnVk406CQVj97LaWod6KVjl2Sfgw9Aktw==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.15.4", - "@babel/helper-replace-supers": "^7.15.4", - "@babel/helper-simple-access": "^7.15.4", - "@babel/helper-split-export-declaration": "^7.15.4", - "@babel/helper-validator-identifier": "^7.14.9", - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.15.4.tgz", - "integrity": "sha512-E/z9rfbAOt1vDW1DR7k4SzhzotVV5+qMciWV6LaG1g4jeFrkDlJedjtV4h0i4Q/ITnUu+Pk08M7fczsB9GXBDw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.15.4.tgz", - "integrity": "sha512-/ztT6khaXF37MS47fufrKvIsiQkx1LBRvSJNzRqmbyeZnTwU9qBxXYLaaT/6KaxfKhjs2Wy8kG8ZdsFUuWBjzw==", - "dev": true, - "dependencies": { - "@babel/helper-member-expression-to-functions": "^7.15.4", - "@babel/helper-optimise-call-expression": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.15.4.tgz", - "integrity": "sha512-UzazrDoIVOZZcTeHHEPYrr1MvTR/K+wgLg6MY6e1CJyaRhbibftF6fR2KU2sFRtI/nERUZR9fBd6aKgBlIBaPg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-string-parser": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.22.5.tgz", - "integrity": "sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==", + "version": "7.24.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", + "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -544,114 +251,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-validator-option": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz", - "integrity": "sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.15.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.15.4.tgz", - "integrity": "sha512-V45u6dqEJ3w2rlryYYXf6i9rQ5YMNu4FLS6ngs8ikblhu2VdR1AqAd6aJjBzmf2Qzh6KOLqKHxEN9+TFbAkAVQ==", - "dev": true, - "dependencies": { - "@babel/template": "^7.15.4", - "@babel/traverse": "^7.15.4", - "@babel/types": "^7.15.4" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.22.20.tgz", - "integrity": "sha512-dkdMCN3py0+ksCgYmGG8jKeGA/8Tk+gJwSYYlFGxG5lmhfKNoAy004YpLxpS1W2J8m/EK2Ew+yOs9pVRwO89mg==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/parser": { "version": "7.24.1", "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.1.tgz", @@ -664,71 +263,13 @@ "node": ">=6.0.0" } }, - "node_modules/@babel/template": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.22.15.tgz", - "integrity": "sha512-QPErUVm4uyJa60rkI73qneDacvdvzxshT3kksGqlGWYdOTIUOwJ7RDUL8sGqslY1uXWSL6xMFKEXDS3ox2uF0w==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/parser": "^7.22.15", - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", - "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.0", - "@babel/types": "^7.23.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse/node_modules/debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/@babel/traverse/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, "node_modules/@babel/types": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.23.0.tgz", - "integrity": "sha512-0oIyUfKoI3mSqMvsxBdclDwxXKXAUA8v/apZbc+iSyARYou1o8ZGDxbUYyLFoW2arqS2jDGqJuZvv1d/io1axg==", + "version": "7.24.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz", + "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.22.5", + "@babel/helper-string-parser": "^7.23.4", "@babel/helper-validator-identifier": "^7.22.20", "to-fast-properties": "^2.0.0" }, @@ -736,6 +277,12 @@ "node": ">=6.9.0" } }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, "node_modules/@bundled-es-modules/cookie": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@bundled-es-modules/cookie/-/cookie-2.0.0.tgz", @@ -1268,126 +815,49 @@ "node": ">=18" } }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, "engines": { "node": ">=8" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", "dev": true, "dependencies": { - "p-try": "^2.0.0" + "@sinclair/typebox": "^0.27.8" }, "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz", + "integrity": "sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==", "dev": true, "dependencies": { - "p-limit": "^2.2.0" + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, - "engines": { - "node": ">=8" + "node": ">=6.0.0" } }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "node_modules/@jridgewell/gen-mapping/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", "dev": true, "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@jridgewell/resolve-uri": { @@ -1400,9 +870,9 @@ } }, "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", "dev": true, "engines": { "node": ">=6.0.0" @@ -1446,9 +916,9 @@ } }, "node_modules/@mswjs/interceptors": { - "version": "0.26.14", - "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.26.14.tgz", - "integrity": "sha512-q4S8RGjOUzv3A3gCawuKkUEcNJXjdPaSqoRHFvuZPWQnc7yOw702iGBRDMJoBK+l0KSv9XN8YP5ek6duRzrpqw==", + "version": "0.25.16", + "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.25.16.tgz", + "integrity": "sha512-8QC8JyKztvoGAdPgyZy49c9vSHHAZjHagwl4RY9E8carULk8ym3iTaiawrT1YoLF/qb449h48f71XDPgkUSOUg==", "dev": true, "dependencies": { "@open-draft/deferred-promise": "^2.2.0", @@ -1677,6 +1147,12 @@ "@shikijs/core": "1.2.0" } }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, "node_modules/@tsconfig/node10": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz", @@ -1765,6 +1241,12 @@ "@types/node": "*" } }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, "node_modules/@types/linkify-it": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.3.tgz", @@ -1879,6 +1361,186 @@ "vue": "^3.2.25" } }, + "node_modules/@vitest/coverage-v8": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vitest/coverage-v8/-/coverage-v8-1.4.0.tgz", + "integrity": "sha512-4hDGyH1SvKpgZnIByr9LhGgCEuF9DKM34IBLCC/fVfy24Z3+PZ+Ii9hsVBsHvY1umM1aGPEjceRkzxCfcQ10wg==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.1", + "@bcoe/v8-coverage": "^0.2.3", + "debug": "^4.3.4", + "istanbul-lib-coverage": "^3.2.2", + "istanbul-lib-report": "^3.0.1", + "istanbul-lib-source-maps": "^5.0.4", + "istanbul-reports": "^3.1.6", + "magic-string": "^0.30.5", + "magicast": "^0.3.3", + "picocolors": "^1.0.0", + "std-env": "^3.5.0", + "strip-literal": "^2.0.0", + "test-exclude": "^6.0.0", + "v8-to-istanbul": "^9.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "vitest": "1.4.0" + } + }, + "node_modules/@vitest/coverage-v8/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@vitest/coverage-v8/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/@vitest/coverage-v8/node_modules/istanbul-lib-source-maps": { + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.4.tgz", + "integrity": "sha512-wHOoEsNJTVltaJp8eVkm8w+GVkVNHT2YDYo53YdzQEL2gWm1hBX5cGFR9hQJtuGLebidVX7et3+dmDZrmclduw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.23", + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@vitest/coverage-v8/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/@vitest/expect": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-1.4.0.tgz", + "integrity": "sha512-Jths0sWCJZ8BxjKe+p+eKsoqev1/T8lYcrjavEaz8auEJ4jAVY0GwW3JKmdVU4mmNPLPHixh4GNXP7GFtAiDHA==", + "dev": true, + "dependencies": { + "@vitest/spy": "1.4.0", + "@vitest/utils": "1.4.0", + "chai": "^4.3.10" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-1.4.0.tgz", + "integrity": "sha512-EDYVSmesqlQ4RD2VvWo3hQgTJ7ZrFQ2VSJdfiJiArkCerDAGeyF1i6dHkmySqk573jLp6d/cfqCN+7wUB5tLgg==", + "dev": true, + "dependencies": { + "@vitest/utils": "1.4.0", + "p-limit": "^5.0.0", + "pathe": "^1.1.1" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/runner/node_modules/p-limit": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-5.0.0.tgz", + "integrity": "sha512-/Eaoq+QyLSiXQ4lyYV23f14mZRQcXnxfHrN0vCai+ak9G0pp9iEQukIIZq5NccEvwRB8PUnZT0KsOoDCINS1qQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^1.0.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@vitest/runner/node_modules/yocto-queue": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-1.0.0.tgz", + "integrity": "sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g==", + "dev": true, + "engines": { + "node": ">=12.20" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@vitest/snapshot": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-1.4.0.tgz", + "integrity": "sha512-saAFnt5pPIA5qDGxOHxJ/XxhMFKkUSBJmVt5VgDsAqPTX6JP326r5C/c9UuCMPoXNzuudTPsYDZCoJ5ilpqG2A==", + "dev": true, + "dependencies": { + "magic-string": "^0.30.5", + "pathe": "^1.1.1", + "pretty-format": "^29.7.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/spy": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-1.4.0.tgz", + "integrity": "sha512-Ywau/Qs1DzM/8Uc+yA77CwSegizMlcgTJuYGAi0jujOteJOUf1ujunHThYo243KG9nAyWT3L9ifPYZ5+As/+6Q==", + "dev": true, + "dependencies": { + "tinyspy": "^2.2.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-1.4.0.tgz", + "integrity": "sha512-mx3Yd1/6e2Vt/PUC98DcqTirtfxUyAZ32uK82r8rZzbtBeBo+nqgnjx/LvqQdWsrvNtm14VmurNgcf4nqY5gJg==", + "dev": true, + "dependencies": { + "diff-sequences": "^29.6.3", + "estree-walker": "^3.0.3", + "loupe": "^2.3.7", + "pretty-format": "^29.7.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/@vitest/utils/node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "dependencies": { + "@types/estree": "^1.0.0" + } + }, "node_modules/@vue/compiler-core": { "version": "3.4.21", "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.21.tgz", @@ -2239,9 +1901,9 @@ } }, "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "version": "8.11.3", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.3.tgz", + "integrity": "sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -2251,27 +1913,14 @@ } }, "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.2.tgz", + "integrity": "sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A==", "dev": true, "engines": { "node": ">=0.4.0" } }, - "node_modules/aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "dependencies": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/algoliasearch": { "version": "4.22.1", "resolved": "https://registry.npmjs.org/algoliasearch/-/algoliasearch-4.22.1.tgz", @@ -2294,15 +1943,6 @@ "@algolia/transporter": "4.22.1" } }, - "node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -2365,6 +2005,8 @@ "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -2373,42 +2015,27 @@ "node": ">= 8" } }, - "node_modules/append-transform": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/append-transform/-/append-transform-2.0.0.tgz", - "integrity": "sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg==", - "dev": true, - "dependencies": { - "default-require-extensions": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/archy": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", - "integrity": "sha1-+cjBN1fMHde8N5rHeyxipcKGjEA=", - "dev": true - }, "node_modules/arg": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", "dev": true }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, "node_modules/array-flatten": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", "dev": true }, + "node_modules/assertion-error": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", + "integrity": "sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==", + "dev": true, + "engines": { + "node": "*" + } + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", @@ -2437,6 +2064,8 @@ "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=8" } @@ -2497,56 +2126,20 @@ "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "dev": true, - "dependencies": { - "fill-range": "^7.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "node_modules/browserslist": { - "version": "4.21.11", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.11.tgz", - "integrity": "sha512-xn1UXOKUz7DjdGlg9RrUr0GGiWzI97UQJnugHtH0OLDfJB7jMgoIkYvRIEO1l9EeEERVqeqLYOcFBW9ldjypbQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], + } + }, + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dev": true, + "optional": true, + "peer": true, "dependencies": { - "caniuse-lite": "^1.0.30001538", - "electron-to-chromium": "^1.4.526", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.13" - }, - "bin": { - "browserslist": "cli.js" + "fill-range": "^7.0.1" }, "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + "node": ">=8" } }, "node_modules/buffer-from": { @@ -2566,17 +2159,11 @@ "node": ">= 0.8" } }, - "node_modules/caching-transform": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/caching-transform/-/caching-transform-4.0.0.tgz", - "integrity": "sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA==", + "node_modules/cac": { + "version": "6.7.14", + "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz", + "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==", "dev": true, - "dependencies": { - "hasha": "^5.0.0", - "make-dir": "^3.0.0", - "package-hash": "^4.0.0", - "write-file-atomic": "^3.0.0" - }, "engines": { "node": ">=8" } @@ -2594,35 +2181,24 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "node_modules/chai": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/chai/-/chai-4.4.1.tgz", + "integrity": "sha512-13sOfMv2+DWduEU+/xbun3LScLoqN17nBeTLUsmDfKdoiC1fr0n9PU4guu4AhRcOVFk/sW8LyZWHuhWtQZiF+g==", "dev": true, + "dependencies": { + "assertion-error": "^1.1.0", + "check-error": "^1.0.3", + "deep-eql": "^4.1.3", + "get-func-name": "^2.0.2", + "loupe": "^2.3.6", + "pathval": "^1.1.1", + "type-detect": "^4.0.8" + }, "engines": { - "node": ">=6" + "node": ">=4" } }, - "node_modules/caniuse-lite": { - "version": "1.0.30001538", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001538.tgz", - "integrity": "sha512-HWJnhnID+0YMtGlzcp3T9drmBJUVDchPJ08tpUGFLs9CYlwWPH2uLgpHn8fND5pCgXVtnGS3H4QR9XLMHVNkHw==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, "node_modules/chalk": { "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", @@ -2639,6 +2215,18 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/check-error": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.3.tgz", + "integrity": "sha512-iKEoDYaRmd1mxM90a2OEfWhjsjPpYPuQ+lMYsoxB126+t8fw7ySEO48nmDg5COTjxDI65/Y2OWpeEHk3ZOe8zg==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.2" + }, + "engines": { + "node": "*" + } + }, "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", @@ -2650,6 +2238,8 @@ "url": "https://paulmillr.com/funding/" } ], + "optional": true, + "peer": true, "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", @@ -2666,15 +2256,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, "node_modules/cli-spinners": { "version": "2.9.2", "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", @@ -2687,34 +2268,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -2753,12 +2306,6 @@ "optional": true, "peer": true }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", - "dev": true - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -2806,15 +2353,6 @@ "node": ">= 0.6" } }, - "node_modules/convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.1.1" - } - }, "node_modules/cookie": { "version": "0.5.0", "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", @@ -2865,25 +2403,16 @@ "ms": "2.0.0" } }, - "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/default-require-extensions": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/default-require-extensions/-/default-require-extensions-3.0.0.tgz", - "integrity": "sha512-ek6DpXq/SCpvjhpFsLFRVtIxJCRw6fUR42lYMVZuUMK7n8eMz4Uh5clckdBjEpLhn/gEBZo7hDJnJcwdKLKQjg==", + "node_modules/deep-eql": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-4.1.3.tgz", + "integrity": "sha512-WaEtAOpRA1MQ0eohqZjpGD8zdI0Ovsm8mmFhaDN8dvDZzyoUMcYDnf5Y6iu7HTXxf8JDS23qWa4a+hKCDyOPzw==", "dev": true, "dependencies": { - "strip-bom": "^4.0.0" + "type-detect": "^4.0.0" }, "engines": { - "node": ">=8" + "node": ">=6" } }, "node_modules/delayed-stream": { @@ -2914,13 +2443,13 @@ "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, "engines": { - "node": ">=0.3.1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/ee-first": { @@ -2929,12 +2458,6 @@ "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", "dev": true }, - "node_modules/electron-to-chromium": { - "version": "1.4.527", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.527.tgz", - "integrity": "sha512-EafxEiEDzk2aLrdbtVczylHflHdHkNrpGNHIgDyA63sUQLQVS2ayj2hPw3RsVB42qkwURH+T2OxV7kGPUuYszA==", - "dev": true - }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -2950,12 +2473,6 @@ "node": ">= 0.8" } }, - "node_modules/es6-error": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", - "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", - "dev": true - }, "node_modules/esbuild": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz", @@ -3009,31 +2526,6 @@ "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", "dev": true }, - "node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/estree-walker": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", @@ -3049,6 +2541,53 @@ "node": ">= 0.6" } }, + "node_modules/execa": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-8.0.1.tgz", + "integrity": "sha512-VyhnebXciFV2DESc+p6B+y0LjSm0krU4OgJN44qFAhBY0TJ+1V61tYD2+wHusZ6F9n5K+vl8k0sTy7PEfV4qpg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^8.0.1", + "human-signals": "^5.0.0", + "is-stream": "^3.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^5.1.0", + "onetime": "^6.0.0", + "signal-exit": "^4.1.0", + "strip-final-newline": "^3.0.0" + }, + "engines": { + "node": ">=16.17" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/execa/node_modules/is-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-3.0.0.tgz", + "integrity": "sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA==", + "dev": true, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/execa/node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "dev": true, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/express": { "version": "4.19.2", "resolved": "https://registry.npmjs.org/express/-/express-4.19.2.tgz", @@ -3149,6 +2688,8 @@ "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "to-regex-range": "^5.0.1" }, @@ -3174,112 +2715,6 @@ "node": ">= 0.8" } }, - "node_modules/find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "dev": true, - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/find-cache-dir/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-cache-dir/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-cache-dir/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/find-cache-dir/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-cache-dir/node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "dependencies": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true, - "bin": { - "flat": "cli.js" - } - }, "node_modules/focus-trap": { "version": "7.5.4", "resolved": "https://registry.npmjs.org/focus-trap/-/focus-trap-7.5.4.tgz", @@ -3309,19 +2744,6 @@ } } }, - "node_modules/foreground-child": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-2.0.0.tgz", - "integrity": "sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.0", - "signal-exit": "^3.0.2" - }, - "engines": { - "node": ">=8.0.0" - } - }, "node_modules/form-data": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", @@ -3354,26 +2776,6 @@ "node": ">= 0.6" } }, - "node_modules/fromentries": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/fromentries/-/fromentries-1.3.2.tgz", - "integrity": "sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -3400,15 +2802,6 @@ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/get-caller-file": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", @@ -3418,6 +2811,15 @@ "node": "6.* || 8.* || >= 10.*" } }, + "node_modules/get-func-name": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", + "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", + "dev": true, + "engines": { + "node": "*" + } + }, "node_modules/get-intrinsic": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz", @@ -3432,13 +2834,16 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "node_modules/get-stream": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-8.0.1.tgz", + "integrity": "sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==", "dev": true, "engines": { - "node": ">=8.0.0" + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/glob": { @@ -3466,6 +2871,8 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "is-glob": "^4.0.1" }, @@ -3473,21 +2880,6 @@ "node": ">= 6" } }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.11", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", - "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", - "dev": true - }, "node_modules/graphql": { "version": "16.8.1", "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.8.1.tgz", @@ -3560,31 +2952,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/hasha": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/hasha/-/hasha-5.2.2.tgz", - "integrity": "sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ==", - "dev": true, - "dependencies": { - "is-stream": "^2.0.0", - "type-fest": "^0.8.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true, - "bin": { - "he": "bin/he" - } - }, "node_modules/headers-polyfill": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/headers-polyfill/-/headers-polyfill-4.0.2.tgz", @@ -3619,6 +2986,15 @@ "node": ">= 0.8" } }, + "node_modules/human-signals": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-5.0.0.tgz", + "integrity": "sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==", + "dev": true, + "engines": { + "node": ">=16.17.0" + } + }, "node_modules/husky": { "version": "9.0.11", "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", @@ -3654,24 +3030,6 @@ "optional": true, "peer": true }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/inflight": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", @@ -3702,6 +3060,8 @@ "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "binary-extensions": "^2.0.0" }, @@ -3714,6 +3074,8 @@ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=0.10.0" } @@ -3732,6 +3094,8 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "is-extglob": "^2.1.1" }, @@ -3750,49 +3114,12 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=0.12.0" } }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "node_modules/is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", @@ -3800,123 +3127,62 @@ "dev": true }, "node_modules/istanbul-lib-coverage": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.0.0.tgz", - "integrity": "sha512-UiUIqxMgRDET6eR+o5HbfRYP1l0hqkWOs7vNxC/mggutCMUIhWMm8gAHb8tHlyfD3/l6rlgNA5cKdDzEAf6hEg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-hook": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz", - "integrity": "sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ==", - "dev": true, - "dependencies": { - "append-transform": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", - "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, - "dependencies": { - "@babel/core": "^7.7.5", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.0.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-processinfo": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz", - "integrity": "sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw==", - "dev": true, - "dependencies": { - "archy": "^1.0.0", - "cross-spawn": "^7.0.0", - "istanbul-lib-coverage": "^3.0.0-alpha.1", - "make-dir": "^3.0.0", - "p-map": "^3.0.0", - "rimraf": "^3.0.0", - "uuid": "^3.3.3" - }, "engines": { "node": ">=8" } }, "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, "dependencies": { "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", + "make-dir": "^4.0.0", "supports-color": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" } }, - "node_modules/istanbul-lib-source-maps": { + "node_modules/istanbul-lib-report/node_modules/make-dir": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.0.tgz", - "integrity": "sha512-c16LpFRkR8vQXyHZ5nLpY35JZtzj1PQY1iZmesUbf1FZHbIupcWfjgOXBY9YHkLEQ6puz1u4Dgj6qmU/DisrZg==", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" + "semver": "^7.5.3" }, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/istanbul-lib-source-maps/node_modules/debug": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.2.tgz", - "integrity": "sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw==", + "node_modules/istanbul-lib-report/node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dev": true, "dependencies": { - "ms": "2.1.2" + "lru-cache": "^6.0.0" }, - "engines": { - "node": ">=6.0" + "bin": { + "semver": "bin/semver.js" }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/istanbul-lib-source-maps/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/istanbul-lib-source-maps/node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=10" } }, "node_modules/istanbul-reports": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.0.2.tgz", - "integrity": "sha512-9tZvz7AiR3PEDNGiV9vIouQ/EAcqMXFmkcA1CDFTwOB98OZVDL0PH9glHotf5Ugp6GCOTypfzGWI/OqjWNCRUw==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", "dev": true, "dependencies": { "html-escaper": "^2.0.0", @@ -3926,89 +3192,47 @@ "node": ">=8" } }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json5": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.2.tgz", - "integrity": "sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ==", - "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/jsonc-parser": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.2.0.tgz", "integrity": "sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w==", "dev": true }, - "node_modules/locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "node_modules/local-pkg": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.5.0.tgz", + "integrity": "sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==", "dev": true, "dependencies": { - "p-locate": "^5.0.0" + "mlly": "^1.4.2", + "pkg-types": "^1.0.3" }, "engines": { - "node": ">=10" + "node": ">=14" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/antfu" } }, - "node_modules/lodash.flattendeep": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz", - "integrity": "sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI=", - "dev": true + "node_modules/loupe": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/loupe/-/loupe-2.3.7.tgz", + "integrity": "sha512-zSMINGVYkdpYSOBmLi0D1Uo7JU9nVdQKrHxC8eYlV+9YKK9WePqAlL7lSlorG/U2Fw1w0hTBmaa/jrQ3UbPHtA==", + "dev": true, + "dependencies": { + "get-func-name": "^2.0.1" + } }, - "node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", "dev": true, "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" + "yallist": "^4.0.0" }, "engines": { "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/lunr": { @@ -4029,19 +3253,15 @@ "node": ">=12" } }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "node_modules/magicast": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/magicast/-/magicast-0.3.3.tgz", + "integrity": "sha512-ZbrP1Qxnpoes8sz47AM0z08U+jW6TyRgZzcWy3Ma3vDhJttwMwAFDMMQFobwdBxByBD46JYmxRzeF7w2+wJEuw==", "dev": true, "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "@babel/parser": "^7.23.6", + "@babel/types": "^7.23.6", + "source-map-js": "^1.0.2" } }, "node_modules/make-error": { @@ -4083,6 +3303,12 @@ "integrity": "sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w==", "dev": true }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", @@ -4125,156 +3351,61 @@ "node": ">= 0.6" } }, - "node_modules/minimatch": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.5.tgz", - "integrity": "sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/minisearch": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/minisearch/-/minisearch-6.3.0.tgz", - "integrity": "sha512-ihFnidEeU8iXzcVHy74dhkxh/dn8Dc08ERl0xwoMMGqp4+LvRSCgicb+zGqWthVokQKvCSxITlh3P08OzdTYCQ==", - "dev": true - }, - "node_modules/mitt": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", - "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", - "dev": true - }, - "node_modules/mocha": { - "version": "10.4.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.4.0.tgz", - "integrity": "sha512-eqhGB8JKapEYcC4ytX/xrzKforgEc3j1pGlAXVy3eRwrtAy5/nIfT1SvgGzfN0XZZxeLq0aQWkOUAmqIJiv+bA==", - "dev": true, - "dependencies": { - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.3", - "debug": "4.3.4", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "8.1.0", - "he": "1.2.0", - "js-yaml": "4.1.0", - "log-symbols": "4.1.0", - "minimatch": "5.0.1", - "ms": "2.1.3", - "serialize-javascript": "6.0.0", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "workerpool": "6.2.1", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" - }, - "bin": { - "_mocha": "bin/_mocha", - "mocha": "bin/mocha.js" - }, - "engines": { - "node": ">= 14.0.0" - } - }, - "node_modules/mocha/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/mocha/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "node_modules/mimic-fn": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz", + "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==", "dev": true, - "dependencies": { - "ms": "2.1.2" - }, "engines": { - "node": ">=6.0" + "node": ">=12" }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/mocha/node_modules/debug/node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/mocha/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "node_modules/minimatch": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.5.tgz", + "integrity": "sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==", "dev": true, "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" + "brace-expansion": "^1.1.7" }, "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" + "node": "*" } }, - "node_modules/mocha/node_modules/minimatch": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", - "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/mocha/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "node_modules/minisearch": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/minisearch/-/minisearch-6.3.0.tgz", + "integrity": "sha512-ihFnidEeU8iXzcVHy74dhkxh/dn8Dc08ERl0xwoMMGqp4+LvRSCgicb+zGqWthVokQKvCSxITlh3P08OzdTYCQ==", "dev": true }, - "node_modules/mocha/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "dev": true + }, + "node_modules/mlly": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.6.1.tgz", + "integrity": "sha512-vLgaHvaeunuOXHSmEbZ9izxPx3USsk8KCQ8iC+aTlp5sKRSoZvwhHh5L9VbKSaVC6sJDqbyohIS76E2VmHIPAA==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" + "acorn": "^8.11.3", + "pathe": "^1.1.2", + "pkg-types": "^1.0.3", + "ufo": "^1.3.2" } }, "node_modules/ms": { @@ -4284,9 +3415,9 @@ "dev": true }, "node_modules/msw": { - "version": "2.2.13", - "resolved": "https://registry.npmjs.org/msw/-/msw-2.2.13.tgz", - "integrity": "sha512-ljFf1xZsU0b4zv1l7xzEmC6OZA6yD06hcx0H+dc8V0VypaP3HGYJa1rMLjQbBWl32ptGhcfwcPCWDB1wjmsftw==", + "version": "2.2.11", + "resolved": "https://registry.npmjs.org/msw/-/msw-2.2.11.tgz", + "integrity": "sha512-XtIoewF7XWLT0a39Ftkazt9PprBA1bxHZ4CSlomN74sCBJOJU2w5VwLmGlswwsOBhGoF7jovt6bxrSIESxA1KA==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -4294,7 +3425,7 @@ "@bundled-es-modules/statuses": "^1.0.1", "@inquirer/confirm": "^3.0.0", "@mswjs/cookies": "^1.1.0", - "@mswjs/interceptors": "^0.26.14", + "@mswjs/interceptors": "^0.25.16", "@open-draft/until": "^2.1.0", "@types/cookie": "^0.6.0", "@types/statuses": "^2.0.4", @@ -4426,179 +3557,42 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, - "node_modules/node-preload": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/node-preload/-/node-preload-0.2.1.tgz", - "integrity": "sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ==", - "dev": true, - "dependencies": { - "process-on-spawn": "^1.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", - "dev": true - }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/nyc": { - "version": "15.1.0", - "resolved": "https://registry.npmjs.org/nyc/-/nyc-15.1.0.tgz", - "integrity": "sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A==", - "dev": true, - "dependencies": { - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "caching-transform": "^4.0.0", - "convert-source-map": "^1.7.0", - "decamelize": "^1.2.0", - "find-cache-dir": "^3.2.0", - "find-up": "^4.1.0", - "foreground-child": "^2.0.0", - "get-package-type": "^0.1.0", - "glob": "^7.1.6", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-hook": "^3.0.0", - "istanbul-lib-instrument": "^4.0.0", - "istanbul-lib-processinfo": "^2.0.2", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.0.2", - "make-dir": "^3.0.0", - "node-preload": "^0.2.1", - "p-map": "^3.0.0", - "process-on-spawn": "^1.0.0", - "resolve-from": "^5.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "spawn-wrap": "^2.0.0", - "test-exclude": "^6.0.0", - "yargs": "^15.0.2" - }, - "bin": { - "nyc": "bin/nyc.js" - }, - "engines": { - "node": ">=8.9" - } - }, - "node_modules/nyc/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/nyc/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/npm-run-path": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.3.0.tgz", + "integrity": "sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ==", "dev": true, "dependencies": { - "p-try": "^2.0.0" + "path-key": "^4.0.0" }, "engines": { - "node": ">=6" + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/nyc/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "node_modules/npm-run-path/node_modules/path-key": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", + "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", "dev": true, - "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, "engines": { - "node": ">=8" - } - }, - "node_modules/nyc/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "node": ">=12" }, - "engines": { - "node": ">=6" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/object-inspect": { @@ -4631,77 +3625,26 @@ "wrappy": "1" } }, - "node_modules/outvariant": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/outvariant/-/outvariant-1.4.2.tgz", - "integrity": "sha512-Ou3dJ6bA/UJ5GVHxah4LnqDwZRwAmWxrG3wtrHrbGnP4RnLCtA64A4F+ae7Y8ww660JaddSoArUR5HjipWSHAQ==", - "dev": true - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "node_modules/onetime": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz", + "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==", "dev": true, "dependencies": { - "p-limit": "^3.0.2" + "mimic-fn": "^4.0.0" }, "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/p-map": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-3.0.0.tgz", - "integrity": "sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ==", - "dev": true, - "dependencies": { - "aggregate-error": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/package-hash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/package-hash/-/package-hash-4.0.0.tgz", - "integrity": "sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.15", - "hasha": "^5.0.0", - "lodash.flattendeep": "^4.4.0", - "release-zalgo": "^1.0.0" - }, - "engines": { - "node": ">=8" - } + "node_modules/outvariant": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/outvariant/-/outvariant-1.4.2.tgz", + "integrity": "sha512-Ou3dJ6bA/UJ5GVHxah4LnqDwZRwAmWxrG3wtrHrbGnP4RnLCtA64A4F+ae7Y8ww660JaddSoArUR5HjipWSHAQ==", + "dev": true }, "node_modules/parseurl": { "version": "1.3.3", @@ -4712,15 +3655,6 @@ "node": ">= 0.8" } }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", @@ -4745,6 +3679,21 @@ "integrity": "sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ==", "dev": true }, + "node_modules/pathe": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", + "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", + "dev": true + }, + "node_modules/pathval": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/pathval/-/pathval-1.1.1.tgz", + "integrity": "sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ==", + "dev": true, + "engines": { + "node": "*" + } + }, "node_modules/perfect-debounce": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz", @@ -4762,6 +3711,8 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, + "optional": true, + "peer": true, "engines": { "node": ">=8.6" }, @@ -4769,6 +3720,17 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pkg-types": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.0.3.tgz", + "integrity": "sha512-nN7pYi0AQqJnoLPC9eHFQ8AcyaixBUOwvqc5TDnIKCMEE6I0y8P7OKA7fPexsXGCGxQDl/cmrLAp26LhcwxZ4A==", + "dev": true, + "dependencies": { + "jsonc-parser": "^3.2.0", + "mlly": "^1.2.0", + "pathe": "^1.1.0" + } + }, "node_modules/postcss": { "version": "8.4.38", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz", @@ -4840,16 +3802,30 @@ "url": "https://github.com/prettier/prettier?sponsor=1" } }, - "node_modules/process-on-spawn": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/process-on-spawn/-/process-on-spawn-1.0.0.tgz", - "integrity": "sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg==", + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", "dev": true, "dependencies": { - "fromentries": "^1.2.0" + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/proxy-addr": { @@ -4886,15 +3862,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "dependencies": { - "safe-buffer": "^5.1.0" - } - }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", @@ -4904,11 +3871,19 @@ "node": ">= 0.6" } }, + "node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "picomatch": "^2.2.1" }, @@ -4916,18 +3891,6 @@ "node": ">=8.10.0" } }, - "node_modules/release-zalgo": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/release-zalgo/-/release-zalgo-1.0.0.tgz", - "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", - "dev": true, - "dependencies": { - "es6-error": "^4.0.1" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -4937,33 +3900,12 @@ "node": ">=0.10.0" } }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, "node_modules/rfdc": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/rfdc/-/rfdc-1.3.1.tgz", "integrity": "sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg==", "dev": true }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - }, - "bin": { - "rimraf": "bin.js" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/rollup": { "version": "4.13.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.13.0.tgz", @@ -4996,12 +3938,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, "node_modules/safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", @@ -5034,15 +3970,6 @@ "dev": true, "peer": true }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, "node_modules/send": { "version": "0.18.0", "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", @@ -5073,15 +4000,6 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true }, - "node_modules/serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", - "dev": true, - "dependencies": { - "randombytes": "^2.1.0" - } - }, "node_modules/serve-static": { "version": "1.15.0", "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", @@ -5097,12 +4015,6 @@ "node": ">= 0.8.0" } }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, "node_modules/setprototypeof": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", @@ -5156,21 +4068,12 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "node_modules/siginfo": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz", + "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==", "dev": true }, - "node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/source-map-js": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz", @@ -5197,27 +4100,10 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, - "optional": true, - "peer": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/spawn-wrap": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/spawn-wrap/-/spawn-wrap-2.0.0.tgz", - "integrity": "sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==", - "dev": true, - "dependencies": { - "foreground-child": "^2.0.0", - "is-windows": "^1.0.2", - "make-dir": "^3.0.0", - "rimraf": "^3.0.0", - "signal-exit": "^3.0.2", - "which": "^2.0.1" - }, + "optional": true, + "peer": true, "engines": { - "node": ">=8" + "node": ">=0.10.0" } }, "node_modules/speakingurl": { @@ -5229,10 +4115,10 @@ "node": ">=0.10.0" } }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "node_modules/stackback": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz", + "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==", "dev": true }, "node_modules/statuses": { @@ -5244,6 +4130,12 @@ "node": ">= 0.8" } }, + "node_modules/std-env": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.7.0.tgz", + "integrity": "sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==", + "dev": true + }, "node_modules/strict-event-emitter": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/strict-event-emitter/-/strict-event-emitter-0.5.1.tgz", @@ -5276,27 +4168,36 @@ "node": ">=8" } }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "node_modules/strip-final-newline": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz", + "integrity": "sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==", "dev": true, "engines": { - "node": ">=8" + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "node_modules/strip-literal": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-2.1.0.tgz", + "integrity": "sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "js-tokens": "^9.0.0" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "url": "https://github.com/sponsors/antfu" } }, + "node_modules/strip-literal/node_modules/js-tokens": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.0.tgz", + "integrity": "sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==", + "dev": true + }, "node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -5349,6 +4250,30 @@ "node": ">=8" } }, + "node_modules/tinybench": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.6.0.tgz", + "integrity": "sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==", + "dev": true + }, + "node_modules/tinypool": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.8.3.tgz", + "integrity": "sha512-Ud7uepAklqRH1bvwy22ynrliC7Dljz7Tm8M/0RBUW+YRa4YHhZ6e4PpgE+fu1zr/WqB1kbeuVrdfeuyIBpy4tw==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/tinyspy": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-2.2.1.tgz", + "integrity": "sha512-KYad6Vy5VDWV4GH3fjpseMQ/XU2BhIYP7Vzd0LG44qRWm/Yt2WCOTicFdvmgo6gWaqooMQCawTtILVQJupKu7A==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/to-fast-properties": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", @@ -5363,6 +4288,8 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, + "optional": true, + "peer": true, "dependencies": { "is-number": "^7.0.0" }, @@ -5431,13 +4358,13 @@ "node": ">=0.3.1" } }, - "node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, "engines": { - "node": ">=8" + "node": ">=4" } }, "node_modules/type-is": { @@ -5453,15 +4380,6 @@ "node": ">= 0.6" } }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, "node_modules/typedoc": { "version": "0.25.12", "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.25.12.tgz", @@ -5532,6 +4450,12 @@ "node": ">=14.17" } }, + "node_modules/ufo": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.3.tgz", + "integrity": "sha512-Y7HYmWaFwPUmkoQCUIAYpKqkOf+SbVj/2fJJZ4RJMCfZp0rTGwRbzQD+HghfnhKOjL9E01okqz+ncJskGYfBNw==", + "dev": true + }, "node_modules/uglify-js": { "version": "3.17.4", "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", @@ -5559,36 +4483,6 @@ "node": ">= 0.8" } }, - "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, "node_modules/utils-merge": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", @@ -5598,22 +4492,42 @@ "node": ">= 0.4.0" } }, - "node_modules/uuid": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", - "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", - "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", - "dev": true, - "bin": { - "uuid": "bin/uuid" - } - }, "node_modules/v8-compile-cache-lib": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", "dev": true }, + "node_modules/v8-to-istanbul": { + "version": "9.2.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", + "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/v8-to-istanbul/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, "node_modules/vary": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", @@ -5678,6 +4592,51 @@ } } }, + "node_modules/vite-node": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-1.4.0.tgz", + "integrity": "sha512-VZDAseqjrHgNd4Kh8icYHWzTKSCZMhia7GyHfhtzLW33fZlG9SwsB6CEhgyVOWkJfJ2pFLrp/Gj1FSfAiqH9Lw==", + "dev": true, + "dependencies": { + "cac": "^6.7.14", + "debug": "^4.3.4", + "pathe": "^1.1.1", + "picocolors": "^1.0.0", + "vite": "^5.0.0" + }, + "bin": { + "vite-node": "vite-node.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + } + }, + "node_modules/vite-node/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/vite-node/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, "node_modules/vitepress": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.0.2.tgz", @@ -5731,6 +4690,94 @@ "@shikijs/core": "1.2.2" } }, + "node_modules/vitest": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-1.4.0.tgz", + "integrity": "sha512-gujzn0g7fmwf83/WzrDTnncZt2UiXP41mHuFYFrdwaLRVQ6JYQEiME2IfEjU3vcFL3VKa75XhI3lFgn+hfVsQw==", + "dev": true, + "dependencies": { + "@vitest/expect": "1.4.0", + "@vitest/runner": "1.4.0", + "@vitest/snapshot": "1.4.0", + "@vitest/spy": "1.4.0", + "@vitest/utils": "1.4.0", + "acorn-walk": "^8.3.2", + "chai": "^4.3.10", + "debug": "^4.3.4", + "execa": "^8.0.1", + "local-pkg": "^0.5.0", + "magic-string": "^0.30.5", + "pathe": "^1.1.1", + "picocolors": "^1.0.0", + "std-env": "^3.5.0", + "strip-literal": "^2.0.0", + "tinybench": "^2.5.1", + "tinypool": "^0.8.2", + "vite": "^5.0.0", + "vite-node": "1.4.0", + "why-is-node-running": "^2.2.2" + }, + "bin": { + "vitest": "vitest.mjs" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://opencollective.com/vitest" + }, + "peerDependencies": { + "@edge-runtime/vm": "*", + "@types/node": "^18.0.0 || >=20.0.0", + "@vitest/browser": "1.4.0", + "@vitest/ui": "1.4.0", + "happy-dom": "*", + "jsdom": "*" + }, + "peerDependenciesMeta": { + "@edge-runtime/vm": { + "optional": true + }, + "@types/node": { + "optional": true + }, + "@vitest/browser": { + "optional": true + }, + "@vitest/ui": { + "optional": true + }, + "happy-dom": { + "optional": true + }, + "jsdom": { + "optional": true + } + } + }, + "node_modules/vitest/node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/vitest/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, "node_modules/vscode-oniguruma": { "version": "1.7.0", "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz", @@ -5779,11 +4826,21 @@ "node": ">= 8" } }, - "node_modules/which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true + "node_modules/why-is-node-running": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.2.2.tgz", + "integrity": "sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==", + "dev": true, + "dependencies": { + "siginfo": "^2.0.0", + "stackback": "0.0.2" + }, + "bin": { + "why-is-node-running": "cli.js" + }, + "engines": { + "node": ">=8" + } }, "node_modules/wordwrap": { "version": "1.0.0", @@ -5791,12 +4848,6 @@ "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", "dev": true }, - "node_modules/workerpool": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", - "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", - "dev": true - }, "node_modules/wrap-ansi": { "version": "6.2.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", @@ -5817,107 +4868,11 @@ "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, - "node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "dev": true, - "dependencies": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/yargs-unparser/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/yargs-unparser/node_modules/decamelize": { + "node_modules/yallist": { "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/yargs-unparser/node_modules/is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true }, "node_modules/yn": { "version": "3.1.1", @@ -5927,18 +4882,6 @@ "engines": { "node": ">=6" } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } } } } diff --git a/package.json b/package.json index d8358846f..51da9dc01 100644 --- a/package.json +++ b/package.json @@ -2,24 +2,27 @@ "name": "@line/bot-sdk", "version": "__LINE_BOT_SDK_NODEJS_VERSION__", "description": "Node.js SDK for LINE Messaging API", + "type": "module", "engines": { "node": ">=18" }, "main": "dist/index.js", "types": "dist/index.d.ts", + "module": "dist/index.js", "files": [ "dist", "lib" ], "scripts": { "pretest": "npm run format && npm run build", - "test": "TEST_PORT=1234 TS_NODE_CACHE=0 mocha --exit", - "covtest": "TEST_PORT=1234 TS_NODE_CACHE=0 nyc mocha --exit", + "test": "vitest run", + "covtest": "vitest run --coverage", "prettier": "prettier \"{lib,test}/**/*.ts\"", "format": "npm run prettier -- --write", "format:check": "npm run prettier -- -l", "clean": "rm -rf dist/*", - "prebuild": "npm run format:check && npm run clean", + "copy-rollup": "node ./scripts/workaround-for-rollup.mjs", + "prebuild": "npm run format:check && npm run clean && npm run copy-rollup", "build": "tsc", "docs": "vitepress dev docs", "docs:build": "vitepress build docs", @@ -48,18 +51,19 @@ "@types/express": "4.17.21", "@types/finalhandler": "1.2.3", "@types/mocha": "10.0.6", + "@vitest/coverage-v8": "^1.4.0", "express": "4.19.2", "finalhandler": "1.2.0", "husky": "9.0.11", - "mocha": "10.4.0", - "msw": "2.2.13", - "nyc": "15.1.0", + "msw": "2.2.11", "prettier": "3.2.5", "ts-node": "10.9.2", "typedoc": "^0.25.1", "typedoc-plugin-markdown": "^3.16.0", "typescript": "5.4.3", - "vitepress": "^1.0.1" + "vite": "^5.2.7", + "vitepress": "^1.0.1", + "vitest": "^1.4.0" }, "husky": { "hooks": { @@ -67,26 +71,5 @@ "pre-push": "npm run format:check && npm run build && npm run test" } }, - "nyc": { - "require": [ - "ts-node/register" - ], - "extension": [ - ".ts" - ], - "reporter": [ - "lcov", - "text" - ], - "sourceMap": true, - "instrument": true - }, - "mocha": { - "require": "ts-node/register", - "spec": [ - "test/**/*.spec.ts", - "lib/**/tests/**/*.spec.ts" - ] - }, "license": "Apache-2.0" } diff --git a/scripts/workaround-for-rollup.mjs b/scripts/workaround-for-rollup.mjs new file mode 100644 index 000000000..8f102f859 --- /dev/null +++ b/scripts/workaround-for-rollup.mjs @@ -0,0 +1,44 @@ +/** + * This script is a workaround for a compatibility issue between Vite and its dependency, Rollup. + * Specifically, Vite's typescript definitions reference a module ('rollup/parseAst') that is not + * directly resolvable with the default module resolution strategy used in some configurations. + * + * The script copies the necessary Rollup files to the expected locations and updates import paths + * in 'parseAst.d.ts' to ensure Vite can correctly import these types. + * + * This workaround should be removed once the underlying issue with Vite's dependency resolution + * is resolved. Ideally, this would be when Vite or Rollup releases an update that addresses the + * issue directly, making this script unnecessary. + * + * Keep an eye on Vite and Rollup's release notes for an update on this issue. + * https://github.com/rollup/rollup/issues/5199 + * https://github.com/vitest-dev/vitest/issues/4567 + */ + +import fs from 'node:fs'; +import path from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { dirname } from 'node:path'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = dirname(__filename); + +const rollupDir = path.join(__dirname, '..', 'node_modules', 'rollup', 'dist'); +const destDir = path.join(__dirname, '..', 'node_modules', 'rollup'); + +const filesToCopy = ['parseAst.d.ts', 'parseAst.js']; + +filesToCopy.forEach(file => { + const srcPath = path.join(rollupDir, file); + const destPath = path.join(destDir, file); + + fs.copyFileSync(srcPath, destPath); + console.log(`[Workaround] Copied ${srcPath} to ${destPath}`); + + if (file === 'parseAst.d.ts') { + const data = fs.readFileSync(destPath, 'utf8'); + const result = data.replace("from './rollup';", "from './';"); + fs.writeFileSync(destPath, result, 'utf8'); + console.log(`[Workaround] Updated import in ${destPath}`); + } +}); diff --git a/test/client.spec.ts b/test/client.spec.ts index 5c6a55ca5..c8a961b69 100644 --- a/test/client.spec.ts +++ b/test/client.spec.ts @@ -2,9 +2,9 @@ import { readFileSync } from "node:fs"; import { join } from "node:path"; import { deepEqual, equal, ok, strictEqual } from "node:assert"; import { URL } from "node:url"; -import Client, { OAuth } from "../lib/client"; -import * as Types from "../lib/types"; -import { getStreamData } from "./helpers/stream"; +import Client, { OAuth } from "../lib/client.js"; +import * as Types from "../lib/types.js"; +import { getStreamData } from "./helpers/stream.js"; import { http, HttpResponse } from "msw"; import { setupServer } from "msw/node"; import { @@ -12,7 +12,9 @@ import { MESSAGING_API_PREFIX, OAUTH_BASE_PREFIX, OAUTH_BASE_PREFIX_V2_1, -} from "../lib/endpoints"; +} from "../lib/endpoints.js"; + +import { describe, it, beforeAll, afterAll, afterEach } from "vitest"; const channelAccessToken = "test_channel_access_token"; @@ -56,10 +58,10 @@ const checkInterceptionOption = ( describe("client", () => { const server = setupServer(); - before(() => { + beforeAll(() => { server.listen(); }); - after(() => { + afterAll(() => { server.close(); }); afterEach(() => { @@ -1341,10 +1343,10 @@ describe("client", () => { const oauth = new OAuth(); describe("oauth", () => { const server = setupServer(); - before(() => { + beforeAll(() => { server.listen(); }); - after(() => { + afterAll(() => { server.close(); }); afterEach(() => { diff --git a/test/helpers/test-server.ts b/test/helpers/test-server.ts index 234e0d1d0..9594cf766 100644 --- a/test/helpers/test-server.ts +++ b/test/helpers/test-server.ts @@ -1,12 +1,12 @@ import * as bodyParser from "body-parser"; -import * as express from "express"; +import express from "express"; import { Server } from "node:http"; import { join } from "node:path"; import { writeFileSync } from "node:fs"; import { JSONParseError, SignatureValidationFailed, -} from "../../lib/exceptions"; +} from "../../lib/exceptions.js"; import * as finalhandler from "finalhandler"; let server: Server | null = null; diff --git a/test/http-axios.spec.ts b/test/http-axios.spec.ts index 27b0c94c7..0698857f4 100644 --- a/test/http-axios.spec.ts +++ b/test/http-axios.spec.ts @@ -1,13 +1,15 @@ import { deepEqual, equal, ok } from "node:assert"; -import { HTTPError } from "../lib/exceptions"; -import HTTPClient from "../lib/http-axios"; -import { getStreamData } from "./helpers/stream"; +import { HTTPError } from "../lib/exceptions.js"; +import HTTPClient from "../lib/http-axios.js"; +import { getStreamData } from "./helpers/stream.js"; import { http, HttpResponse } from "msw"; import { setupServer } from "msw/node"; import { createReadStream, readFileSync } from "node:fs"; import { join } from "node:path"; import * as fs from "node:fs"; +import { describe, it, beforeAll, afterAll, afterEach } from "vitest"; + const baseURL = "https://line.me"; describe("http", () => { const httpClient = new HTTPClient({ @@ -18,10 +20,10 @@ describe("http", () => { }); const server = setupServer(); - before(() => { + beforeAll(() => { server.listen(); }); - after(() => { + afterAll(() => { server.close(); }); afterEach(() => { diff --git a/test/http-fetch.spec.ts b/test/http-fetch.spec.ts index 42211b633..b46c64a72 100644 --- a/test/http-fetch.spec.ts +++ b/test/http-fetch.spec.ts @@ -1,12 +1,16 @@ import { deepEqual, equal, ok } from "node:assert"; -import { HTTPFetchError } from "../lib"; -import HTTPFetchClient, { convertResponseToReadable } from "../lib/http-fetch"; -import { getStreamData } from "./helpers/stream"; +import { HTTPFetchError } from "../lib/index.js"; +import HTTPFetchClient, { + convertResponseToReadable, +} from "../lib/http-fetch.js"; +import { getStreamData } from "./helpers/stream.js"; import { http, HttpResponse } from "msw"; import { setupServer } from "msw/node"; import { join } from "node:path"; import * as fs from "node:fs"; +import { describe, it, beforeAll, afterAll, afterEach } from "vitest"; + const baseURL = "https://line.me"; describe("http(fetch)", () => { @@ -18,10 +22,10 @@ describe("http(fetch)", () => { }); const server = setupServer(); - before(() => { + beforeAll(() => { server.listen(); }); - after(() => { + afterAll(() => { server.close(); }); afterEach(() => { diff --git a/test/libs-channelAccessToken.spec.ts b/test/libs-channelAccessToken.spec.ts index fad748919..4abc90353 100644 --- a/test/libs-channelAccessToken.spec.ts +++ b/test/libs-channelAccessToken.spec.ts @@ -1,16 +1,18 @@ -import { channelAccessToken } from "../lib"; +import { channelAccessToken } from "../lib/index.js"; import { http, HttpResponse } from "msw"; import { setupServer } from "msw/node"; import { deepEqual, equal } from "node:assert"; +import { describe, it, beforeAll, afterAll, afterEach } from "vitest"; + const client = new channelAccessToken.ChannelAccessTokenClient({}); describe("channelAccessToken", () => { const server = setupServer(); - before(() => { + beforeAll(() => { server.listen(); }); - after(() => { + afterAll(() => { server.close(); }); afterEach(() => { diff --git a/test/libs-manageAudience.spec.ts b/test/libs-manageAudience.spec.ts index ffe782471..a985b4a41 100644 --- a/test/libs-manageAudience.spec.ts +++ b/test/libs-manageAudience.spec.ts @@ -1,8 +1,10 @@ -import { manageAudience } from "../lib"; +import { manageAudience } from "../lib/index.js"; import { http, HttpResponse } from "msw"; import { setupServer } from "msw/node"; import { deepEqual, equal, match } from "node:assert"; +import { describe, it, beforeAll, afterAll, afterEach } from "vitest"; + const channelAccessToken = "test_channel_access_token"; const client = new manageAudience.ManageAudienceClient({ @@ -15,10 +17,10 @@ const blobClient = new manageAudience.ManageAudienceBlobClient({ describe("manageAudience", () => { const server = setupServer(); - before(() => { + beforeAll(() => { server.listen(); }); - after(() => { + afterAll(() => { server.close(); }); afterEach(() => { diff --git a/test/libs-messagingApi.spec.ts b/test/libs-messagingApi.spec.ts index 0fb1bada5..01d55253f 100644 --- a/test/libs-messagingApi.spec.ts +++ b/test/libs-messagingApi.spec.ts @@ -1,8 +1,10 @@ -import { messagingApi } from "../lib"; +import { messagingApi } from "../lib/index.js"; import { http, HttpResponse } from "msw"; import { setupServer } from "msw/node"; import { deepEqual, equal } from "node:assert"; +import { describe, it, beforeAll, afterAll, afterEach } from "vitest"; + const channelAccessToken = "test_channel_access_token"; const client = new messagingApi.MessagingApiClient({ @@ -15,10 +17,10 @@ const blobClient = new messagingApi.MessagingApiBlobClient({ describe("messagingApi", () => { const server = setupServer(); - before(() => { + beforeAll(() => { server.listen(); }); - after(() => { + afterAll(() => { server.close(); }); afterEach(() => { diff --git a/test/libs-shop.spec.ts b/test/libs-shop.spec.ts index ce1cacace..1159b502e 100644 --- a/test/libs-shop.spec.ts +++ b/test/libs-shop.spec.ts @@ -1,8 +1,10 @@ -import { shop } from "../lib"; +import { shop } from "../lib/index.js"; import { http, HttpResponse } from "msw"; import { setupServer } from "msw/node"; import { deepEqual, equal } from "node:assert"; +import { describe, it, beforeAll, afterAll, afterEach } from "vitest"; + const channelAccessToken = "test_channel_access_token"; const client = new shop.ShopClient({ @@ -11,10 +13,10 @@ const client = new shop.ShopClient({ describe("shop", () => { const server = setupServer(); - before(() => { + beforeAll(() => { server.listen(); }); - after(() => { + afterAll(() => { server.close(); }); afterEach(() => { diff --git a/test/libs-webhook.spec.ts b/test/libs-webhook.spec.ts index ff9467a12..3af39e975 100644 --- a/test/libs-webhook.spec.ts +++ b/test/libs-webhook.spec.ts @@ -1,4 +1,6 @@ -import { webhook } from "../lib"; +import { webhook } from "../lib/index.js"; + +import { describe, it } from "vitest"; describe("webhook", () => { it("event", async () => { diff --git a/test/middleware.spec.ts b/test/middleware.spec.ts index 0a3f27d33..ec8911dad 100644 --- a/test/middleware.spec.ts +++ b/test/middleware.spec.ts @@ -1,11 +1,13 @@ import { deepEqual, equal, ok } from "node:assert"; import { readFileSync } from "node:fs"; import { join } from "node:path"; -import { HTTPError } from "../lib/exceptions"; -import HTTPClient from "../lib/http-axios"; -import middleware from "../lib/middleware"; -import * as Types from "../lib/types"; -import { close, listen } from "./helpers/test-server"; +import { HTTPError } from "../lib/exceptions.js"; +import HTTPClient from "../lib/http-axios.js"; +import middleware from "../lib/middleware.js"; +import * as Types from "../lib/types.js"; +import { close, listen } from "./helpers/test-server.js"; + +import { describe, it, beforeAll, afterAll, afterEach } from "vitest"; const TEST_PORT = parseInt(process.env.TEST_PORT || "1234", 10); @@ -48,8 +50,12 @@ describe("middleware test", () => { defaultHeaders: headers, }); - before(() => listen(TEST_PORT, m)); - after(() => close()); + beforeAll(() => { + listen(TEST_PORT, m); + }); + afterAll(() => { + close(); + }); describe("Succeeds on parsing valid request", () => { const testCases = [ @@ -84,7 +90,7 @@ describe("middleware test", () => { const req = getRecentReq(); deepEqual(req.body.destination, DESTINATION); deepEqual(req.body.events, [webhook]); - }).timeout(6000); + }); }); }); diff --git a/test/utils.spec.ts b/test/utils.spec.ts index 0e6c690d2..0028d6207 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -1,7 +1,9 @@ -import { ensureJSON } from "../lib/utils"; -import { JSONParseError } from "../lib/exceptions"; +import { ensureJSON } from "../lib/utils.js"; +import { JSONParseError } from "../lib/exceptions.js"; import { equal, ok } from "node:assert"; +import { describe, it } from "vitest"; + describe("utils", () => { describe("ensureJSON", () => { it("fails when input isn't an object", () => { diff --git a/test/validate-signature.spec.ts b/test/validate-signature.spec.ts index d830db82a..32f8a5f45 100644 --- a/test/validate-signature.spec.ts +++ b/test/validate-signature.spec.ts @@ -1,5 +1,7 @@ import { ok } from "node:assert"; -import validateSignature from "../lib/validate-signature"; +import validateSignature from "../lib/validate-signature.js"; + +import { describe, it } from "vitest"; const body = { hello: "world" }; const secret = "test_secret"; diff --git a/tsconfig.json b/tsconfig.json index 13fb10b99..9c302f573 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,13 +1,23 @@ { "compilerOptions": { - "module": "commonjs", - "target": "es2017", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "esModuleInterop": true, + "target": "ES2018", "noImplicitAny": true, + "newLine": "LF", + "sourceMap": true, + "declarationMap": true, "outDir": "dist", "rootDirs": ["lib", "test"], "declaration": true, }, "include": [ "lib/**/*.ts", - ] + ], + "exclude": [ + "node_modules", + "dist", + ".git" + ], } diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 000000000..33f068cbf --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from 'vitest/config' + +export default defineConfig({ + test: { + include: [ + "test/**/*.spec.ts", + "lib/**/tests/**/*.spec.ts" + ] + }, +})