mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-04-14 18:29:23 +00:00
Compare commits
12 Commits
192-fix-te
...
add-backen
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e92dd80b50 | ||
| eef0829528 | |||
|
f828f6fc13
|
|||
|
b67a0a9c5a
|
|||
|
40d72fa0cc
|
|||
| 63a38e0077 | |||
| c8b260201c | |||
|
123c50d1af
|
|||
|
|
d65e6351e9 | ||
|
|
2c5d7403db | ||
|
6ca03f463d
|
|||
|
|
1f74a9bc82 |
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
"@openstapps/node-builder": patch
|
|
||||||
"@openstapps/database": patch
|
|
||||||
"@openstapps/node-base": patch
|
|
||||||
"@openstapps/backend": patch
|
|
||||||
"@openstapps/app": patch
|
|
||||||
---
|
|
||||||
|
|
||||||
pin alpine version to 3.18 and add healthchecks
|
|
||||||
5
.changeset/good-eggs-add.md
Normal file
5
.changeset/good-eggs-add.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@openstapps/prettier-config": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Update Prettier to 3.1.1
|
||||||
6
.changeset/nine-bears-speak.md
Normal file
6
.changeset/nine-bears-speak.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
"@openstapps/backend": minor
|
||||||
|
"@openstapps/core": minor
|
||||||
|
---
|
||||||
|
|
||||||
|
Add the ability to filter by existence of a field
|
||||||
5
.changeset/old-bottles-hide.md
Normal file
5
.changeset/old-bottles-hide.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@openstapps/backend": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Backend unit tests break every year
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -24,6 +24,7 @@ report-junit.xml
|
|||||||
# NixOS flake
|
# NixOS flake
|
||||||
result
|
result
|
||||||
hsperfdata_root
|
hsperfdata_root
|
||||||
|
.direnv/
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
# Directory for instrumented libs generated by jscoverage/JSCover
|
||||||
lib-cov
|
lib-cov
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
/** @type {import('syncpack').RcFile} */
|
/** @type {import('syncpack').RcFile} */
|
||||||
const config = {
|
const config = {
|
||||||
semverRange: '',
|
semverGroups: [{range: ''}],
|
||||||
source: ['package.json', '**/package.json'],
|
source: ['package.json', '**/package.json'],
|
||||||
indent: ' ',
|
indent: ' ',
|
||||||
sortFirst: [
|
sortFirst: [
|
||||||
@@ -49,7 +49,7 @@ const config = {
|
|||||||
{
|
{
|
||||||
label: 'Packages should use workspace version',
|
label: 'Packages should use workspace version',
|
||||||
dependencies: ['@openstapps/**'],
|
dependencies: ['@openstapps/**'],
|
||||||
dependencyTypes: ['prod', 'dev'],
|
dependencyTypes: ['prod', 'dev', 'peer'],
|
||||||
packages: ['**'],
|
packages: ['**'],
|
||||||
pinVersion: 'workspace:*',
|
pinVersion: 'workspace:*',
|
||||||
},
|
},
|
||||||
|
|||||||
3
.tool-versions
Normal file
3
.tool-versions
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
nodejs 18.16.1
|
||||||
|
pnpm 8.8.0
|
||||||
|
python 3.11.5
|
||||||
@@ -9,6 +9,6 @@ ENV NODE_ENV=production
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
HEALTHCHECK --interval=10s --timeout=10s --start-period=10s --retries=12 CMD curl -s --fail --request POST --data '{}' --header 'Content-Type: application/json' http://localhost:3000/ >/dev/null || exit 1
|
|
||||||
|
|
||||||
ENTRYPOINT ["node", "app.js"]
|
ENTRYPOINT ["node", "app.js"]
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=10s --timeout=5s --start-period=10s --retries=12 CMD curl -s --fail --request POST --data '{}' --header 'Content-Type: application/json' http://localhost:3000/ >/dev/null || exit 1
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the database configuration for the technical university of berlin
|
* This is the database configuration for the technical university of berlin
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {SCSettingInputType, SCThingOriginType, SCThingType} from '@openstapps/core';
|
import {SCSettingInputType, SCThingOriginType, SCThingType} from '@openstapps/core';
|
||||||
|
|
||||||
/** @type {import('@openstapps/core').SCLanguageSetting} */
|
/** @type {import('@openstapps/core').SCLanguageSetting} */
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
/** @type {import('@openstapps/core').SCAppConfigurationMenuCategory[]} */
|
/** @type {import('@openstapps/core').SCAppConfigurationMenuCategory[]} */
|
||||||
const menus = [
|
const menus = [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {SCSettingInputType, SCThingOriginType, SCThingType} from '@openstapps/core';
|
import {SCSettingInputType, SCThingOriginType, SCThingType} from '@openstapps/core';
|
||||||
|
|
||||||
/** @type {import('@openstapps/core').SCUserGroupSetting} */
|
/** @type {import('@openstapps/core').SCUserGroupSetting} */
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {SCThingType} from '@openstapps/core';
|
import {SCThingType} from '@openstapps/core';
|
||||||
|
|
||||||
/** @type {import('@openstapps/core').SCBackendAggregationConfiguration[]} */
|
/** @type {import('@openstapps/core').SCBackendAggregationConfiguration[]} */
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {
|
import {
|
||||||
month,
|
month,
|
||||||
sommerRange,
|
sommerRange,
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {SCThingType} from '@openstapps/core';
|
import {SCThingType} from '@openstapps/core';
|
||||||
import aggregations from './aggregations.js';
|
import aggregations from './aggregations.js';
|
||||||
import boostings from './boostings.js';
|
import boostings from './boostings.js';
|
||||||
@@ -17,7 +16,7 @@ export const backend = {
|
|||||||
hiddenTypes: [SCThingType.DateSeries, SCThingType.Diff, SCThingType.Floor],
|
hiddenTypes: [SCThingType.DateSeries, SCThingType.Diff, SCThingType.Floor],
|
||||||
mappingIgnoredTags: ['minlength', 'pattern', 'see', 'tjs-format'],
|
mappingIgnoredTags: ['minlength', 'pattern', 'see', 'tjs-format'],
|
||||||
maxMultiSearchRouteQueries: 5,
|
maxMultiSearchRouteQueries: 5,
|
||||||
maxRequestBodySize: 2 * 10 ** 6,
|
maxRequestBodySize: 2e6,
|
||||||
name: 'Goethe-Universität Frankfurt am Main',
|
name: 'Goethe-Universität Frankfurt am Main',
|
||||||
namespace: '909a8cbc-8520-456c-b474-ef1525f14209',
|
namespace: '909a8cbc-8520-456c-b474-ef1525f14209',
|
||||||
sortableFields: [
|
sortableFields: [
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import app from './app/index.js';
|
import app from './app/index.js';
|
||||||
import {backend, internal} from './backend/index.js';
|
import {backend, internal} from './backend/index.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the default configuration for elasticsearch (a database)
|
* This is the default configuration for elasticsearch (a database)
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {readFile} from 'fs/promises';
|
import {readFile} from 'fs/promises';
|
||||||
import {SCAboutPageContentType} from '@openstapps/core';
|
import {SCAboutPageContentType} from '@openstapps/core';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
/**
|
/**
|
||||||
* Generates a range of numbers that represent consecutive calendar months
|
* Generates a range of numbers that represent consecutive calendar months
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {readFile, readdir} from 'fs/promises';
|
import {readFile, readdir} from 'fs/promises';
|
||||||
import url from 'url';
|
import url from 'url';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {SCAboutPageContentType} from '@openstapps/core';
|
import {SCAboutPageContentType} from '@openstapps/core';
|
||||||
import {markdown} from '../../default/tools/markdown.js';
|
import {markdown} from '../../default/tools/markdown.js';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {SCAboutPageContentType} from '@openstapps/core';
|
import {SCAboutPageContentType} from '@openstapps/core';
|
||||||
|
|
||||||
/** @type {import('@openstapps/core').SCAboutPage} */
|
/** @type {import('@openstapps/core').SCAboutPage} */
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import about from './about.js';
|
import about from './about.js';
|
||||||
import imprint from './imprint.js';
|
import imprint from './imprint.js';
|
||||||
import privacy from './privacy.js';
|
import privacy from './privacy.js';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {markdown} from '../../default/tools/markdown.js';
|
import {markdown} from '../../default/tools/markdown.js';
|
||||||
|
|
||||||
/** @type {import('@openstapps/core').SCAboutPage} */
|
/** @type {import('@openstapps/core').SCAboutPage} */
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import aboutPages from './about-pages/index.js';
|
import aboutPages from './about-pages/index.js';
|
||||||
import defaultApp from '../default/app/index.js';
|
import defaultApp from '../default/app/index.js';
|
||||||
import {backend as defaultBackend, internal as defaultInternal} from '../default/backend/index.js';
|
import {backend as defaultBackend, internal as defaultInternal} from '../default/backend/index.js';
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
import {versions} from '../../default/tools/version.js';
|
import {versions} from '../../default/tools/version.js';
|
||||||
|
|
||||||
/** @type {import('@openstapps/core').SCAppVersionInfo[]} */
|
/** @type {import('@openstapps/core').SCAppVersionInfo[]} */
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
"start:debug": "cross-env STAPPS_LOG_LEVEL=31 NODE_CONFIG_ENV=elasticsearch ALLOW_NO_TRANSPORT=true node app.js",
|
"start:debug": "cross-env STAPPS_LOG_LEVEL=31 NODE_CONFIG_ENV=elasticsearch ALLOW_NO_TRANSPORT=true node app.js",
|
||||||
"test": "pnpm run test:unit",
|
"test": "pnpm run test:unit",
|
||||||
"test:integration": "sh integration-test.sh",
|
"test:integration": "sh integration-test.sh",
|
||||||
"test:unit": "cross-env NODE_CONFIG_ENV=elasticsearch ALLOW_NO_TRANSPORT=true STAPPS_LOG_LEVEL=0 c8 mocha"
|
"test:unit": "cross-env NODE_CONFIG_ENV=elasticsearch ALLOW_NO_TRANSPORT=true STAPPS_LOG_LEVEL=0 mocha --exit"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@elastic/elasticsearch": "8.4.0",
|
"@elastic/elasticsearch": "8.4.0",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
*/
|
*/
|
||||||
import {Logger, SMTP} from '@openstapps/logger';
|
import {Logger, SMTP} from '@openstapps/logger';
|
||||||
import {MailOptions} from 'nodemailer/lib/sendmail-transport';
|
import {MailOptions} from 'nodemailer/lib/sendmail-transport';
|
||||||
|
import Queue from 'promise-queue';
|
||||||
/**
|
/**
|
||||||
* A queue that can send mails in serial
|
* A queue that can send mails in serial
|
||||||
*/
|
*/
|
||||||
@@ -32,45 +32,80 @@ export class MailQueue {
|
|||||||
static readonly VERIFICATION_TIMEOUT = 5000;
|
static readonly VERIFICATION_TIMEOUT = 5000;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A promise that resolves when the last mail was sent
|
* A queue that saves mails, before the transport is ready. When
|
||||||
|
* the transport gets ready this mails are getting pushed in to
|
||||||
|
* the normal queue.
|
||||||
*/
|
*/
|
||||||
last?: Promise<string>;
|
dryQueue: MailOptions[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A queue that saves mails, that are being sent in series
|
||||||
|
*/
|
||||||
|
queue: Queue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A counter for the number of verifications that failed
|
||||||
|
*/
|
||||||
|
verificationCounter: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a mail queue
|
* Creates a mail queue
|
||||||
* @param transport Transport which is used for sending mails
|
* @param transport Transport which is used for sending mails
|
||||||
*/
|
*/
|
||||||
constructor(private readonly transport: SMTP) {}
|
constructor(private readonly transport: SMTP) {
|
||||||
|
this.queue = new Queue(1);
|
||||||
|
|
||||||
|
// this queue saves all request when the transport is not ready yet
|
||||||
|
this.dryQueue = [];
|
||||||
|
|
||||||
|
this.verificationCounter = 0;
|
||||||
|
|
||||||
|
// if the transport can be verified it should check if it was done...
|
||||||
|
this.checkForVerification();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wait for the transport to be verified
|
* Adds a mail into the queue so it gets send when the queue is ready
|
||||||
|
* @param mail Information required for sending a mail
|
||||||
*/
|
*/
|
||||||
private async waitForVerification() {
|
private async addToQueue(mail: MailOptions) {
|
||||||
for (let i = 0; i < MailQueue.MAX_VERIFICATION_ATTEMPTS; i++) {
|
return this.queue.add<string>(() => this.transport.sendMail(mail));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verify the given transport
|
||||||
|
*/
|
||||||
|
private checkForVerification() {
|
||||||
|
if (this.verificationCounter >= MailQueue.MAX_VERIFICATION_ATTEMPTS) {
|
||||||
|
throw new Error('Failed to initialize the SMTP transport for the mail queue');
|
||||||
|
}
|
||||||
|
|
||||||
if (this.transport.isVerified()) {
|
if (this.transport.isVerified()) {
|
||||||
Logger.ok('Transport for mail queue was verified. We can send mails now');
|
Logger.ok('Transport for mail queue was verified. We can send mails now');
|
||||||
return;
|
// if the transport finally was verified send all our mails from the dry queue
|
||||||
|
for (const mail of this.dryQueue) {
|
||||||
|
void this.addToQueue(mail);
|
||||||
}
|
}
|
||||||
await new Promise(resolve => setTimeout(resolve, MailQueue.VERIFICATION_TIMEOUT));
|
} else {
|
||||||
|
this.verificationCounter++;
|
||||||
|
setTimeout(() => {
|
||||||
Logger.warn('Transport not verified yet. Trying to send mails here...');
|
Logger.warn('Transport not verified yet. Trying to send mails here...');
|
||||||
|
this.checkForVerification();
|
||||||
|
}, MailQueue.VERIFICATION_TIMEOUT);
|
||||||
}
|
}
|
||||||
throw new Error('Failed to initialize the SMTP transport for the mail queue');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Push a mail into the queue so it gets send when the queue is ready
|
* Push a mail into the queue so it gets send when the queue is ready
|
||||||
* @param mail Information required for sending a mail
|
* @param mail Information required for sending a mail
|
||||||
*/
|
*/
|
||||||
public async push(mail: MailOptions): Promise<string> {
|
public async push(mail: MailOptions) {
|
||||||
const previousQueue = this.last ?? this.waitForVerification();
|
if (this.transport.isVerified()) {
|
||||||
this.last = previousQueue.then(() =>
|
await this.addToQueue(mail);
|
||||||
Promise.race([
|
} else {
|
||||||
this.transport.sendMail(mail),
|
// the transport has verification, but is not verified yet
|
||||||
new Promise<string>((_, reject) =>
|
// push to a dry queue which gets pushed to the real queue when the transport is verified
|
||||||
setTimeout(() => reject(new Error('Timeout')), MailQueue.VERIFICATION_TIMEOUT),
|
this.dryQueue.push(mail);
|
||||||
),
|
}
|
||||||
]),
|
|
||||||
);
|
|
||||||
return this.last;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,16 +21,31 @@ import {QueryDslSpecificQueryContainer} from '../../types/util.js';
|
|||||||
*/
|
*/
|
||||||
export function buildValueFilter(
|
export function buildValueFilter(
|
||||||
filter: SCSearchValueFilter,
|
filter: SCSearchValueFilter,
|
||||||
): QueryDslSpecificQueryContainer<'term'> | QueryDslSpecificQueryContainer<'terms'> {
|
):
|
||||||
return Array.isArray(filter.arguments.value)
|
| QueryDslSpecificQueryContainer<'exists'>
|
||||||
? {
|
| QueryDslSpecificQueryContainer<'term'>
|
||||||
terms: {
|
| QueryDslSpecificQueryContainer<'terms'> {
|
||||||
[`${filter.arguments.field}.raw`]: filter.arguments.value,
|
switch (typeof filter.arguments.value) {
|
||||||
|
case 'undefined': {
|
||||||
|
return {
|
||||||
|
exists: {
|
||||||
|
field: filter.arguments.field,
|
||||||
},
|
},
|
||||||
|
};
|
||||||
}
|
}
|
||||||
: {
|
case 'string': {
|
||||||
|
return {
|
||||||
term: {
|
term: {
|
||||||
[`${filter.arguments.field}.raw`]: filter.arguments.value,
|
[`${filter.arguments.field}.raw`]: filter.arguments.value,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
case 'object': {
|
||||||
|
return {
|
||||||
|
terms: {
|
||||||
|
[`${filter.arguments.field}.raw`]: filter.arguments.value,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ describe('MailQueue', async function () {
|
|||||||
clock.tick(MailQueue.VERIFICATION_TIMEOUT * (MailQueue.MAX_VERIFICATION_ATTEMPTS + 1));
|
clock.tick(MailQueue.VERIFICATION_TIMEOUT * (MailQueue.MAX_VERIFICATION_ATTEMPTS + 1));
|
||||||
};
|
};
|
||||||
|
|
||||||
expect(test).to.throw();
|
expect(() => test()).to.throw();
|
||||||
expect(loggerStub.callCount).to.be.equal(MailQueue.MAX_VERIFICATION_ATTEMPTS);
|
expect(loggerStub.callCount).to.be.equal(MailQueue.MAX_VERIFICATION_ATTEMPTS);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {
|
import {
|
||||||
|
SCBook,
|
||||||
SCBulkAddRoute,
|
SCBulkAddRoute,
|
||||||
SCBulkDoneRoute,
|
SCBulkDoneRoute,
|
||||||
SCBulkRequest,
|
SCBulkRequest,
|
||||||
@@ -23,29 +24,30 @@ import {
|
|||||||
import {expect} from 'chai';
|
import {expect} from 'chai';
|
||||||
import {bulk, DEFAULT_TEST_TIMEOUT} from '../common.js';
|
import {bulk, DEFAULT_TEST_TIMEOUT} from '../common.js';
|
||||||
import {testApp} from '../tests-setup.js';
|
import {testApp} from '../tests-setup.js';
|
||||||
import {readFile} from 'fs/promises';
|
|
||||||
import {v4} from 'uuid';
|
import {v4} from 'uuid';
|
||||||
|
import bookFile from '@openstapps/core/test/resources/indexable/Book.2.json' assert {type: 'json'};
|
||||||
|
|
||||||
const book = JSON.parse(
|
const book = bookFile.instance as SCBook;
|
||||||
await readFile('node_modules/@openstapps/core/test/resources/indexable/Book.2.json', 'utf8'),
|
|
||||||
).instance;
|
|
||||||
|
|
||||||
describe('Bulk routes', async function () {
|
describe('Bulk routes', async function () {
|
||||||
// increase timeout for the suite
|
// increase timeout for the suite
|
||||||
this.timeout(DEFAULT_TEST_TIMEOUT);
|
this.timeout(DEFAULT_TEST_TIMEOUT);
|
||||||
|
|
||||||
const request: SCBulkRequest = {
|
let request: SCBulkRequest;
|
||||||
|
let bulkRoute: SCBulkRoute;
|
||||||
|
let bulkAddRoute: SCBulkAddRoute;
|
||||||
|
let bulkDoneRoute: SCBulkDoneRoute;
|
||||||
|
|
||||||
|
before(function () {
|
||||||
|
request = {
|
||||||
expiration: bulk.expiration,
|
expiration: bulk.expiration,
|
||||||
source: bulk.source,
|
source: bulk.source,
|
||||||
type: bulk.type,
|
type: bulk.type,
|
||||||
};
|
};
|
||||||
const bulkRoute = new SCBulkRoute();
|
bulkRoute = new SCBulkRoute();
|
||||||
const bulkAddRoute = new SCBulkAddRoute();
|
bulkAddRoute = new SCBulkAddRoute();
|
||||||
const bulkDoneRoute = new SCBulkDoneRoute();
|
bulkDoneRoute = new SCBulkDoneRoute();
|
||||||
|
});
|
||||||
// afterEach(async function() {
|
|
||||||
// TODO: Delete saved bulks
|
|
||||||
// });
|
|
||||||
|
|
||||||
it('should create bulk', async function () {
|
it('should create bulk', async function () {
|
||||||
const {status, body, error} = await testApp
|
const {status, body, error} = await testApp
|
||||||
|
|||||||
@@ -21,7 +21,12 @@ import {expect} from 'chai';
|
|||||||
describe('Index route', async function () {
|
describe('Index route', async function () {
|
||||||
// increase timeout for the suite
|
// increase timeout for the suite
|
||||||
this.timeout(DEFAULT_TEST_TIMEOUT);
|
this.timeout(DEFAULT_TEST_TIMEOUT);
|
||||||
const indexRoute = new SCIndexRoute();
|
|
||||||
|
let indexRoute: SCIndexRoute;
|
||||||
|
|
||||||
|
before(function () {
|
||||||
|
indexRoute = new SCIndexRoute();
|
||||||
|
});
|
||||||
|
|
||||||
it('should respond with both app and backend configuration', async function () {
|
it('should respond with both app and backend configuration', async function () {
|
||||||
const request: SCIndexRequest = {};
|
const request: SCIndexRequest = {};
|
||||||
|
|||||||
@@ -30,15 +30,11 @@ import chaiAsPromised from 'chai-as-promised';
|
|||||||
import {DEFAULT_TEST_TIMEOUT} from '../common.js';
|
import {DEFAULT_TEST_TIMEOUT} from '../common.js';
|
||||||
import {testApp} from '../tests-setup.js';
|
import {testApp} from '../tests-setup.js';
|
||||||
import {backendConfig} from '../../src/config.js';
|
import {backendConfig} from '../../src/config.js';
|
||||||
import {readFile} from 'fs/promises';
|
import registerRequest from '@openstapps/core/test/resources/PluginRegisterRequest.1.json' assert {type: 'json'};
|
||||||
|
|
||||||
// for using promises in expectations (to.eventually.be...)
|
// for using promises in expectations (to.eventually.be...)
|
||||||
use(chaiAsPromised);
|
use(chaiAsPromised);
|
||||||
|
|
||||||
const registerRequest = JSON.parse(
|
|
||||||
await readFile('node_modules/@openstapps/core/test/resources/PluginRegisterRequest.1.json', 'utf8'),
|
|
||||||
);
|
|
||||||
|
|
||||||
// cast it because of "TS2322: Type 'string' is not assignable to type '"add"'"
|
// cast it because of "TS2322: Type 'string' is not assignable to type '"add"'"
|
||||||
export const registerAddRequest: SCPluginAdd = registerRequest.instance as SCPluginAdd;
|
export const registerAddRequest: SCPluginAdd = registerRequest.instance as SCPluginAdd;
|
||||||
|
|
||||||
|
|||||||
@@ -47,8 +47,8 @@ describe('Create route', async function () {
|
|||||||
const statusCodeSuccess = 222;
|
const statusCodeSuccess = 222;
|
||||||
const bodySuccess = {foo: true};
|
const bodySuccess = {foo: true};
|
||||||
const sandbox = sinon.createSandbox();
|
const sandbox = sinon.createSandbox();
|
||||||
const validationError = new SCValidationErrorResponse([]);
|
let validationError: SCValidationErrorResponse;
|
||||||
const internalServerError = new SCInternalServerErrorResponse();
|
let internalServerError: SCInternalServerErrorResponse;
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
app = express();
|
app = express();
|
||||||
@@ -64,6 +64,9 @@ describe('Create route', async function () {
|
|||||||
handler = (_request, _app) => {
|
handler = (_request, _app) => {
|
||||||
return Promise.resolve(bodySuccess);
|
return Promise.resolve(bodySuccess);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
validationError = new SCValidationErrorResponse([]);
|
||||||
|
internalServerError = new SCInternalServerErrorResponse();
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(function () {
|
afterEach(function () {
|
||||||
|
|||||||
@@ -29,11 +29,19 @@ import {backendConfig} from '../../src/config.js';
|
|||||||
describe('Search route', async function () {
|
describe('Search route', async function () {
|
||||||
// increase timeout for the suite
|
// increase timeout for the suite
|
||||||
this.timeout(DEFAULT_TEST_TIMEOUT);
|
this.timeout(DEFAULT_TEST_TIMEOUT);
|
||||||
const searchRoute = new SCSearchRoute();
|
let searchRoute: SCSearchRoute;
|
||||||
const multiSearchRoute = new SCMultiSearchRoute();
|
let multiSearchRoute: SCMultiSearchRoute;
|
||||||
const syntaxError = new SCSyntaxErrorResponse('Foo Message');
|
let syntaxError: SCSyntaxErrorResponse;
|
||||||
const methodNotAllowedError = new SCMethodNotAllowedErrorResponse();
|
let methodNotAllowedError: SCMethodNotAllowedErrorResponse;
|
||||||
const tooManyRequestsError = new SCTooManyRequestsErrorResponse();
|
let tooManyRequestsError: SCTooManyRequestsErrorResponse;
|
||||||
|
|
||||||
|
before(function () {
|
||||||
|
searchRoute = new SCSearchRoute();
|
||||||
|
multiSearchRoute = new SCMultiSearchRoute();
|
||||||
|
syntaxError = new SCSyntaxErrorResponse('Foo Message');
|
||||||
|
methodNotAllowedError = new SCMethodNotAllowedErrorResponse();
|
||||||
|
tooManyRequestsError = new SCTooManyRequestsErrorResponse();
|
||||||
|
});
|
||||||
|
|
||||||
it('should reject GET, PUT with a valid search query', async function () {
|
it('should reject GET, PUT with a valid search query', async function () {
|
||||||
// const expectedParams = JSON.parse(JSON.stringify(defaultParams));
|
// const expectedParams = JSON.parse(JSON.stringify(defaultParams));
|
||||||
|
|||||||
@@ -13,23 +13,25 @@
|
|||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {SCThingUpdateRoute} from '@openstapps/core';
|
import {SCBook, SCThingUpdateRoute} from '@openstapps/core';
|
||||||
import chaiAsPromised from 'chai-as-promised';
|
import chaiAsPromised from 'chai-as-promised';
|
||||||
import {bulkStorageMock, DEFAULT_TEST_TIMEOUT} from '../common.js';
|
import {bulkStorageMock, DEFAULT_TEST_TIMEOUT} from '../common.js';
|
||||||
import {expect, use} from 'chai';
|
import {expect, use} from 'chai';
|
||||||
import {testApp} from '../tests-setup.js';
|
import {testApp} from '../tests-setup.js';
|
||||||
import {readFile} from 'fs/promises';
|
import bookFile from '@openstapps/core/test/resources/indexable/Book.1.json' assert {type: 'json'};
|
||||||
|
|
||||||
use(chaiAsPromised);
|
use(chaiAsPromised);
|
||||||
|
|
||||||
const book = JSON.parse(
|
const book = bookFile.instance as SCBook;
|
||||||
await readFile('node_modules/@openstapps/core/test/resources/indexable/Book.1.json', 'utf8'),
|
|
||||||
).instance;
|
|
||||||
|
|
||||||
describe('Thing update route', async function () {
|
describe('Thing update route', async function () {
|
||||||
// increase timeout for the suite
|
// increase timeout for the suite
|
||||||
this.timeout(DEFAULT_TEST_TIMEOUT);
|
this.timeout(DEFAULT_TEST_TIMEOUT);
|
||||||
const thingUpdateRoute = new SCThingUpdateRoute();
|
let thingUpdateRoute: SCThingUpdateRoute;
|
||||||
|
|
||||||
|
before(function () {
|
||||||
|
thingUpdateRoute = new SCThingUpdateRoute();
|
||||||
|
});
|
||||||
|
|
||||||
it('should update a thing', async function () {
|
it('should update a thing', async function () {
|
||||||
const thingUpdateRouteurlPath = thingUpdateRoute.urlPath
|
const thingUpdateRouteurlPath = thingUpdateRoute.urlPath
|
||||||
|
|||||||
@@ -49,8 +49,11 @@ import {
|
|||||||
} from '../../../src/storage/elasticsearch/util/index.js';
|
} from '../../../src/storage/elasticsearch/util/index.js';
|
||||||
import cron from 'node-cron';
|
import cron from 'node-cron';
|
||||||
import {query} from './query.js';
|
import {query} from './query.js';
|
||||||
import message from '@openstapps/core/test/resources/indexable/Message.1.json' assert {type: 'json'};
|
import messageFile from '@openstapps/core/test/resources/indexable/Message.1.json' assert {type: 'json'};
|
||||||
import book from '@openstapps/core/test/resources/indexable/Book.1.json' assert {type: 'json'};
|
import bookFile from '@openstapps/core/test/resources/indexable/Book.1.json' assert {type: 'json'};
|
||||||
|
|
||||||
|
const message = messageFile.instance as SCMessage;
|
||||||
|
const book = bookFile.instance as SCBook;
|
||||||
|
|
||||||
use(chaiAsPromised);
|
use(chaiAsPromised);
|
||||||
|
|
||||||
@@ -67,7 +70,16 @@ describe('Elasticsearch', function () {
|
|||||||
const sandbox = sinon.createSandbox();
|
const sandbox = sinon.createSandbox();
|
||||||
|
|
||||||
before(function () {
|
before(function () {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
sandbox.stub(fs, 'readFileSync').returns('{}');
|
sandbox.stub(fs, 'readFileSync').returns('{}');
|
||||||
|
sandbox.stub(backendConfig.internal.boostings.default[0], 'fields').value({
|
||||||
|
'academicTerms.acronym': {
|
||||||
|
'SS 2023': 1.05,
|
||||||
|
'WS 2023/24': 1.1,
|
||||||
|
'SoSe 2023': 1.05,
|
||||||
|
'WiSe 2023/24': 1.1,
|
||||||
|
},
|
||||||
|
});
|
||||||
});
|
});
|
||||||
after(function () {
|
after(function () {
|
||||||
sandbox.restore();
|
sandbox.restore();
|
||||||
@@ -261,7 +273,7 @@ describe('Elasticsearch', function () {
|
|||||||
return expect(es.init()).to.be.rejected;
|
return expect(es.init()).to.be.rejected;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should setup the monitoring if there is monitoring is set and mail queue is defined', async function () {
|
it('should setup the monitoring if there is monitoring is set and mail queue is defined', function () {
|
||||||
const config: SCConfigFile = {
|
const config: SCConfigFile = {
|
||||||
...backendConfig,
|
...backendConfig,
|
||||||
internal: {
|
internal: {
|
||||||
@@ -283,7 +295,7 @@ describe('Elasticsearch', function () {
|
|||||||
const cronSetupStub = sandbox.stub(cron, 'schedule');
|
const cronSetupStub = sandbox.stub(cron, 'schedule');
|
||||||
|
|
||||||
const es = new Elasticsearch(config, new MailQueue(getTransport(false) as unknown as SMTP));
|
const es = new Elasticsearch(config, new MailQueue(getTransport(false) as unknown as SMTP));
|
||||||
await es.init();
|
es.init();
|
||||||
|
|
||||||
expect(cronSetupStub.called).to.be.true;
|
expect(cronSetupStub.called).to.be.true;
|
||||||
});
|
});
|
||||||
@@ -437,7 +449,7 @@ describe('Elasticsearch', function () {
|
|||||||
_id: '',
|
_id: '',
|
||||||
_index: '',
|
_index: '',
|
||||||
_score: 0,
|
_score: 0,
|
||||||
_source: message.instance as SCMessage,
|
_source: message,
|
||||||
};
|
};
|
||||||
sandbox.stub(es.client, 'search').resolves(searchResponse(foundObject));
|
sandbox.stub(es.client, 'search').resolves(searchResponse(foundObject));
|
||||||
|
|
||||||
@@ -467,7 +479,7 @@ describe('Elasticsearch', function () {
|
|||||||
const object: SearchHit<SCMessage> = {
|
const object: SearchHit<SCMessage> = {
|
||||||
_id: '',
|
_id: '',
|
||||||
_index: oldIndex,
|
_index: oldIndex,
|
||||||
_source: message.instance as SCMessage,
|
_source: message,
|
||||||
};
|
};
|
||||||
sandbox.stub(es.client, 'search').resolves(searchResponse<SCMessage>(object));
|
sandbox.stub(es.client, 'search').resolves(searchResponse<SCMessage>(object));
|
||||||
sandbox.stub(es, 'prepareBulkWrite').resolves(index);
|
sandbox.stub(es, 'prepareBulkWrite').resolves(index);
|
||||||
@@ -481,7 +493,7 @@ describe('Elasticsearch', function () {
|
|||||||
sandbox.stub(es.client, 'create').resolves({result: 'not_found'} as CreateResponse);
|
sandbox.stub(es.client, 'create').resolves({result: 'not_found'} as CreateResponse);
|
||||||
|
|
||||||
await es.init();
|
await es.init();
|
||||||
return expect(es.post(message.instance as SCMessage, bulk)).to.rejectedWith('creation');
|
return expect(es.post(message, bulk)).to.rejectedWith('creation');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should create a new object', async function () {
|
it('should create a new object', async function () {
|
||||||
@@ -494,11 +506,11 @@ describe('Elasticsearch', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
await es.init();
|
await es.init();
|
||||||
await es.post(message.instance as SCMessage, bulk);
|
await es.post(message, bulk);
|
||||||
|
|
||||||
expect(createStub.called).to.be.true;
|
expect(createStub.called).to.be.true;
|
||||||
expect(caughtParameter.document).to.be.eql({
|
expect(caughtParameter.document).to.be.eql({
|
||||||
...message.instance,
|
...message,
|
||||||
creation_date: caughtParameter.document.creation_date,
|
creation_date: caughtParameter.document.creation_date,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -519,7 +531,7 @@ describe('Elasticsearch', function () {
|
|||||||
_id: '',
|
_id: '',
|
||||||
_index: getIndex(),
|
_index: getIndex(),
|
||||||
_score: 0,
|
_score: 0,
|
||||||
_source: message.instance as SCMessage,
|
_source: message,
|
||||||
};
|
};
|
||||||
sandbox.stub(es.client, 'search').resolves(searchResponse());
|
sandbox.stub(es.client, 'search').resolves(searchResponse());
|
||||||
|
|
||||||
@@ -533,7 +545,7 @@ describe('Elasticsearch', function () {
|
|||||||
_id: '',
|
_id: '',
|
||||||
_index: getIndex(),
|
_index: getIndex(),
|
||||||
_score: 0,
|
_score: 0,
|
||||||
_source: message.instance as SCMessage,
|
_source: message,
|
||||||
};
|
};
|
||||||
sandbox.stub(es.client, 'search').resolves(searchResponse(object));
|
sandbox.stub(es.client, 'search').resolves(searchResponse(object));
|
||||||
// @ts-expect-error unused
|
// @ts-expect-error unused
|
||||||
@@ -556,13 +568,13 @@ describe('Elasticsearch', function () {
|
|||||||
_id: '123',
|
_id: '123',
|
||||||
_index: getIndex(),
|
_index: getIndex(),
|
||||||
_score: 0,
|
_score: 0,
|
||||||
_source: message.instance as SCMessage,
|
_source: message,
|
||||||
};
|
};
|
||||||
const objectBook: SearchHit<SCBook> = {
|
const objectBook: SearchHit<SCBook> = {
|
||||||
_id: '321',
|
_id: '321',
|
||||||
_index: getIndex(),
|
_index: getIndex(),
|
||||||
_score: 0,
|
_score: 0,
|
||||||
_source: book.instance as SCBook,
|
_source: book,
|
||||||
};
|
};
|
||||||
const fakeEsAggregations = {
|
const fakeEsAggregations = {
|
||||||
'@all': {
|
'@all': {
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
"extends": "@openstapps/tsconfig",
|
"extends": "@openstapps/tsconfig",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"useUnknownInCatchVariables": false,
|
"useUnknownInCatchVariables": false
|
||||||
"allowJs": true,
|
|
||||||
"checkJs": true
|
|
||||||
},
|
},
|
||||||
"exclude": ["app.js", "lib/"]
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,6 @@ RUN chown elasticsearch:elasticsearch config/elasticsearch.yml
|
|||||||
|
|
||||||
USER elasticsearch
|
USER elasticsearch
|
||||||
|
|
||||||
HEALTHCHECK --interval=10s --timeout=10s --start-period=60s --retries=12 CMD curl --fail -s http://localhost:9200/ >/dev/null || exit 1
|
|
||||||
|
|
||||||
CMD ["/usr/share/elasticsearch/bin/elasticsearch"]
|
CMD ["/usr/share/elasticsearch/bin/elasticsearch"]
|
||||||
|
|
||||||
|
HEALTHCHECK --interval=10s --timeout=5s --start-period=60s --retries=12 CMD curl --fail -s http://localhost:9200/ >/dev/null || exit 1
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
nginx &
|
nginx &
|
||||||
node ./app.js
|
node ./lib/cli.js
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// ESM is not supported, and cts is not detected, so we use type-checked cjs instead.
|
||||||
/** @type {import('../src/common').ConfigFile} */
|
/** @type {import('../src/common').ConfigFile} */
|
||||||
const configFile = {
|
const configFile = {
|
||||||
activeVersions: ['1\\.0\\.\\d+', '2\\.0\\.\\d+'],
|
activeVersions: ['1\\.0\\.\\d+', '2\\.0\\.\\d+'],
|
||||||
@@ -46,6 +46,7 @@
|
|||||||
"@types/dockerode": "3.3.17",
|
"@types/dockerode": "3.3.17",
|
||||||
"@types/node": "18.15.3",
|
"@types/node": "18.15.3",
|
||||||
"@types/sha1": "1.1.3",
|
"@types/sha1": "1.1.3",
|
||||||
|
"config": "3.3.9",
|
||||||
"dockerode": "3.3.5",
|
"dockerode": "3.3.5",
|
||||||
"is-cidr": "4.0.2",
|
"is-cidr": "4.0.2",
|
||||||
"mustache": "4.2.0",
|
"mustache": "4.2.0",
|
||||||
@@ -58,6 +59,7 @@
|
|||||||
"@openstapps/prettier-config": "workspace:*",
|
"@openstapps/prettier-config": "workspace:*",
|
||||||
"@openstapps/tsconfig": "workspace:*",
|
"@openstapps/tsconfig": "workspace:*",
|
||||||
"@types/chai": "4.3.5",
|
"@types/chai": "4.3.5",
|
||||||
|
"@types/config": "3.3.0",
|
||||||
"@types/dockerode": "3.3.17",
|
"@types/dockerode": "3.3.17",
|
||||||
"@types/mocha": "10.0.1",
|
"@types/mocha": "10.0.1",
|
||||||
"@types/mustache": "4.2.2",
|
"@types/mustache": "4.2.2",
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {Logger, SMTP} from '@openstapps/logger';
|
import {Logger, SMTP} from '@openstapps/logger';
|
||||||
|
import config from 'config';
|
||||||
import {existsSync} from 'fs';
|
import {existsSync} from 'fs';
|
||||||
|
|
||||||
// set transport on logger
|
// set transport on logger
|
||||||
@@ -162,7 +163,7 @@ ssl_stapling_verify on;`;
|
|||||||
/**
|
/**
|
||||||
* Config file
|
* Config file
|
||||||
*/
|
*/
|
||||||
export const configFile: ConfigFile = await import('../config/default.js').then(it => it.default);
|
export const configFile: ConfigFile = config.util.toObject();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if path is a specific file type
|
* Check if path is a specific file type
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig",
|
"extends": "@openstapps/tsconfig",
|
||||||
"exclude": ["./config/", "./lib/"]
|
"exclude": ["config", "lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("node:path");
|
const path = require("node:path");
|
||||||
const child_process = require("child_process");
|
const child_process = require("child_process");
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
"use strict"
|
"use strict"
|
||||||
|
|
||||||
const rule = require('./copyright-header-rule')
|
const rule = require('./copyright-header-rule')
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
|
|
||||||
/** @type {import('eslint').Linter.Config} */
|
/** @type {import('eslint').Linter.Config} */
|
||||||
const config = {
|
const config = {
|
||||||
root: true,
|
root: true,
|
||||||
|
|||||||
@@ -19,9 +19,9 @@
|
|||||||
"test": "prettier --config index.js --check \"test/*.js\""
|
"test": "prettier --config index.js --check \"test/*.js\""
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"prettier": "3.1.0"
|
"prettier": "3.1.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"prettier": "3.1.0"
|
"prettier": "3.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
|
"checkJs": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,44 +1,62 @@
|
|||||||
version: '3.7'
|
version: '3.7'
|
||||||
|
|
||||||
|
x-development-variables: &development-variables
|
||||||
|
NODE_ENV: "development"
|
||||||
|
ALLOW_NO_TRANSPORT: "true"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
database:
|
database:
|
||||||
image: registry.gitlab.com/openstapps/openstapps/database:2.0.0
|
image: registry.gitlab.com/openstapps/openstapps/database:3.0.0
|
||||||
volumes:
|
# If you need persistence for debugging purposes uncomment the following lines
|
||||||
- ./database:/usr/share/elasticsearch/data
|
#volumes:
|
||||||
|
# - ./database:/usr/share/elasticsearch/data
|
||||||
expose:
|
expose:
|
||||||
- "9200"
|
- 9200
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:9200:9200
|
||||||
|
environment:
|
||||||
|
- bootstrap.memory_lock=true
|
||||||
|
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
|
||||||
|
- discovery.type=single-node
|
||||||
|
ulimits:
|
||||||
|
memlock:
|
||||||
|
soft: -1
|
||||||
|
hard: -1
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
image: registry.gitlab.com/openstapps/openstapps/backend:3.0.0-next.0
|
image: registry.gitlab.com/openstapps/openstapps/backend:3.1.0
|
||||||
environment:
|
environment:
|
||||||
|
<<: *development-variables
|
||||||
ES_ADDR: "http://database:9200"
|
ES_ADDR: "http://database:9200"
|
||||||
NODE_CONFIG_ENV: "elasticsearch"
|
NODE_CONFIG_ENV: "elasticsearch"
|
||||||
ALLOW_NO_TRANSPORT: "true"
|
NODE_APP_INSTANCE: "f-u"
|
||||||
|
PROMETHEUS_MIDDLEWARE: "false"
|
||||||
expose:
|
expose:
|
||||||
- 3000
|
- 3000
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 127.0.0.1:3000:3000
|
||||||
links:
|
|
||||||
- "database"
|
|
||||||
labels:
|
labels:
|
||||||
- stapps.version=1.0.0
|
- stapps.version=4.1.0
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- database
|
- database
|
||||||
|
|
||||||
api:
|
|
||||||
image: registry.gitlab.com/openstapps/openstapps/api:3.0.0-next.0
|
|
||||||
links:
|
links:
|
||||||
- "backend"
|
- database
|
||||||
|
|
||||||
minimal-connector:
|
# api:
|
||||||
image: registry.gitlab.com/openstapps/minimal-connector:core-0.23
|
# image: registry.gitlab.com/openstapps/openstapps/api:3.0.0
|
||||||
container_name: minimal-connector-0.23
|
# links:
|
||||||
command: ["http://backend:3000", "minimal-connector", "f-u"]
|
# - backend
|
||||||
|
|
||||||
app:
|
# minimal-connector:
|
||||||
image: registry.gitlab.com/openstapps/app/executable:core-0.23
|
# image: registry.gitlab.com/openstapps/minimal-connector:core-0.23
|
||||||
expose:
|
# container_name: minimal-connector-0.23
|
||||||
- 8100
|
# command: ["http://backend:3000", "minimal-connector", "f-u"]
|
||||||
ports:
|
|
||||||
- 8100:8100
|
# app:
|
||||||
|
# image: registry.gitlab.com/openstapps/app/executable:core-0.23
|
||||||
|
# expose:
|
||||||
|
# - 8100
|
||||||
|
# ports:
|
||||||
|
# - 8100:8100
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
34
flake.lock
generated
34
flake.lock
generated
@@ -1,5 +1,23 @@
|
|||||||
{
|
{
|
||||||
"nodes": {
|
"nodes": {
|
||||||
|
"flake-utils": {
|
||||||
|
"inputs": {
|
||||||
|
"systems": "systems"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1701680307,
|
||||||
|
"narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=",
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"rev": "4022d587cbbfd70fe950c1e2083a02621806a725",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "numtide",
|
||||||
|
"repo": "flake-utils",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1701626906,
|
"lastModified": 1701626906,
|
||||||
@@ -18,8 +36,24 @@
|
|||||||
},
|
},
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"systems": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1681028828,
|
||||||
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-systems",
|
||||||
|
"repo": "default",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"root": "root",
|
"root": "root",
|
||||||
|
|||||||
84
flake.nix
84
flake.nix
@@ -1,18 +1,24 @@
|
|||||||
{
|
{
|
||||||
description = "A Nix-flake-based development environment for OpenStApps";
|
description = "A Nix-flake-based development environment for OpenStApps";
|
||||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
inputs = {
|
||||||
outputs = { self, nixpkgs }:
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||||
let
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
buildToolsVersion = "30.0.3";
|
};
|
||||||
|
outputs = {
|
||||||
|
self,
|
||||||
|
nixpkgs,
|
||||||
|
flake-utils,
|
||||||
|
}: let
|
||||||
|
aapt2buildToolsVersion = "33.0.2";
|
||||||
|
in
|
||||||
|
flake-utils.lib.eachDefaultSystem (system: let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit system;
|
||||||
overlays = [
|
overlays = [
|
||||||
(final: prev: rec {
|
(final: prev: rec {
|
||||||
nodejs = prev.nodejs-18_x;
|
fontMin = prev.python311.withPackages (ps: with ps; [brotli fonttools] ++ (with fonttools.optional-dependencies; [woff]));
|
||||||
pnpm = prev.nodePackages.pnpm;
|
|
||||||
chrome = prev.google-chrome;
|
|
||||||
firefox = prev.firefox;
|
|
||||||
webkit = prev.epiphany; # Safari-ish browser
|
|
||||||
android = prev.androidenv.composeAndroidPackages {
|
android = prev.androidenv.composeAndroidPackages {
|
||||||
buildToolsVersions = [ "${buildToolsVersion}" ];
|
buildToolsVersions = ["30.0.3" aapt2buildToolsVersion];
|
||||||
platformVersions = ["33"];
|
platformVersions = ["33"];
|
||||||
};
|
};
|
||||||
cypress = prev.cypress.overrideAttrs (cyPrev: rec {
|
cypress = prev.cypress.overrideAttrs (cyPrev: rec {
|
||||||
@@ -24,54 +30,46 @@
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
# TODO: aarch64-linux, x68_64-darwin, aarch64-darwin
|
|
||||||
supportedSystems = [ "x86_64-linux" ];
|
|
||||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit overlays system;
|
|
||||||
config = {
|
config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
android_sdk.accept_license = true;
|
android_sdk.accept_license = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
});
|
androidFhs = pkgs.buildFHSUserEnv {
|
||||||
in
|
name = "android-env";
|
||||||
{
|
targetPkgs = pkgs: with pkgs; [];
|
||||||
devShells = forEachSupportedSystem ({ pkgs }:
|
runScript = "bash";
|
||||||
let
|
profile = ''
|
||||||
python = (pkgs.python311.withPackages(ps: with ps; [ brotli fonttools ] ++ (with fonttools.optional-dependencies; [ ufo lxml unicode woff ])));
|
export ALLOW_NINJA_ENV=true
|
||||||
in
|
export USE_CCACHE=1
|
||||||
{
|
export LD_LIBRARY_PATH=/usr/lib:/usr/lib32
|
||||||
default = (pkgs.buildFHSUserEnv {
|
'';
|
||||||
name = "StApps Dev";
|
};
|
||||||
targetPkgs = pkgs: with pkgs; [
|
in {
|
||||||
nodejs
|
devShell = pkgs.mkShell rec {
|
||||||
pnpm
|
nativeBuildInputs = [androidFhs];
|
||||||
python
|
buildInputs = with pkgs; [
|
||||||
docker
|
nodejs-18_x
|
||||||
|
nodePackages.pnpm
|
||||||
# tools
|
# tools
|
||||||
curl
|
curl
|
||||||
jq
|
jq
|
||||||
|
fontMin
|
||||||
# browsers
|
# browsers
|
||||||
firefox
|
firefox
|
||||||
chrome
|
google-chrome
|
||||||
webkit
|
epiphany # Safari-ish browser
|
||||||
cypress
|
cypress
|
||||||
# android
|
# android
|
||||||
jdk17
|
jdk17
|
||||||
android.androidsdk
|
android.androidsdk
|
||||||
musl
|
musl
|
||||||
];
|
];
|
||||||
runScript = "bash";
|
ANDROID_JAVA_HOME = "${pkgs.jdk.home}";
|
||||||
profile = ''
|
ANDROID_SDK_ROOT = "${pkgs.android.androidsdk}/libexec/android-sdk";
|
||||||
export CYPRESS_INSTALL_BINARY=0
|
GRADLE_OPTS = "-Dorg.gradle.project.android.aapt2FromMavenOverride=${ANDROID_SDK_ROOT}/build-tools/${aapt2buildToolsVersion}/aapt2";
|
||||||
export CYPRESS_RUN_BINARY=${pkgs.cypress}/bin/Cypress
|
CYPRESS_INSTALL_BINARY = "0";
|
||||||
export ANDROID_SDK_ROOT=${pkgs.android.androidsdk}/libexec/android-sdk
|
CYPRESS_RUN_BINARY = "${pkgs.cypress}/bin/Cypress";
|
||||||
export ANDROID_JAVA_HOME=${pkgs.jdk.home}
|
|
||||||
export DOCKER_HOST=unix:///run/user/1000/docker.sock
|
|
||||||
{ dockerd-rootless & } 2>/dev/null
|
|
||||||
'';
|
|
||||||
}).env;
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Creates a docker image with only the app as an executable unit
|
# Creates a docker image with only the app as an executable unit
|
||||||
# Dependencies need to be installed beforehand
|
# Dependencies need to be installed beforehand
|
||||||
# Needs to be build beforehand
|
# Needs to be build beforehand
|
||||||
FROM node:18-alpine3.18
|
FROM node:18-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY www/ /app/www
|
COPY www/ /app/www
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2022 StApps
|
* Copyright (C) 2022 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
@@ -13,8 +12,9 @@
|
|||||||
* You should have received a copy of the GNU General Public License along with
|
* You should have received a copy of the GNU General Public License along with
|
||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/** @type {import('./scripts/icon-config').IconConfig} */
|
import type {IconConfig} from './scripts/icon-config';
|
||||||
const config = {
|
|
||||||
|
const config: IconConfig = {
|
||||||
inputPath: 'node_modules/material-symbols/material-symbols-rounded.woff2',
|
inputPath: 'node_modules/material-symbols/material-symbols-rounded.woff2',
|
||||||
outputPath: 'src/assets/icons.min.woff2',
|
outputPath: 'src/assets/icons.min.woff2',
|
||||||
htmlGlob: 'src/**/*.html',
|
htmlGlob: 'src/**/*.html',
|
||||||
@@ -25,7 +25,7 @@ def capacitor_pods
|
|||||||
pod 'CapacitorPreferences', :path => '../../../../node_modules/.pnpm/@capacitor+preferences@5.0.6_@capacitor+core@5.5.0/node_modules/@capacitor/preferences'
|
pod 'CapacitorPreferences', :path => '../../../../node_modules/.pnpm/@capacitor+preferences@5.0.6_@capacitor+core@5.5.0/node_modules/@capacitor/preferences'
|
||||||
pod 'CapacitorShare', :path => '../../../../node_modules/.pnpm/@capacitor+share@5.0.6_@capacitor+core@5.5.0/node_modules/@capacitor/share'
|
pod 'CapacitorShare', :path => '../../../../node_modules/.pnpm/@capacitor+share@5.0.6_@capacitor+core@5.5.0/node_modules/@capacitor/share'
|
||||||
pod 'CapacitorSplashScreen', :path => '../../../../node_modules/.pnpm/@capacitor+splash-screen@5.0.6_@capacitor+core@5.5.0/node_modules/@capacitor/splash-screen'
|
pod 'CapacitorSplashScreen', :path => '../../../../node_modules/.pnpm/@capacitor+splash-screen@5.0.6_@capacitor+core@5.5.0/node_modules/@capacitor/splash-screen'
|
||||||
pod 'TransistorsoftCapacitorBackgroundFetch', :path => '../../../../node_modules/.pnpm/@transistorsoft+capacitor-background-fetch@1.0.2_@capacitor+core@5.5.0/node_modules/@transistorsoft/capacitor-background-fetch'
|
pod 'TransistorsoftCapacitorBackgroundFetch', :path => '../../../../node_modules/.pnpm/@transistorsoft+capacitor-background-fetch@5.1.1_@capacitor+core@5.5.0/node_modules/@transistorsoft/capacitor-background-fetch'
|
||||||
pod 'CapacitorSecureStoragePlugin', :path => '../../../../node_modules/.pnpm/capacitor-secure-storage-plugin@0.9.0_@capacitor+core@5.5.0/node_modules/capacitor-secure-storage-plugin'
|
pod 'CapacitorSecureStoragePlugin', :path => '../../../../node_modules/.pnpm/capacitor-secure-storage-plugin@0.9.0_@capacitor+core@5.5.0/node_modules/capacitor-secure-storage-plugin'
|
||||||
pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
|
pod 'CordovaPlugins', :path => '../capacitor-cordova-ios-plugins'
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ PODS:
|
|||||||
- CordovaPlugins (5.5.0):
|
- CordovaPlugins (5.5.0):
|
||||||
- CapacitorCordova
|
- CapacitorCordova
|
||||||
- SwiftKeychainWrapper (4.0.1)
|
- SwiftKeychainWrapper (4.0.1)
|
||||||
- TransistorsoftCapacitorBackgroundFetch (1.0.2):
|
- TransistorsoftCapacitorBackgroundFetch (5.1.1):
|
||||||
- Capacitor
|
- Capacitor
|
||||||
|
|
||||||
DEPENDENCIES:
|
DEPENDENCIES:
|
||||||
@@ -58,7 +58,7 @@ DEPENDENCIES:
|
|||||||
- "CapacitorShare (from `../../../../node_modules/.pnpm/@capacitor+share@5.0.6_@capacitor+core@5.5.0/node_modules/@capacitor/share`)"
|
- "CapacitorShare (from `../../../../node_modules/.pnpm/@capacitor+share@5.0.6_@capacitor+core@5.5.0/node_modules/@capacitor/share`)"
|
||||||
- "CapacitorSplashScreen (from `../../../../node_modules/.pnpm/@capacitor+splash-screen@5.0.6_@capacitor+core@5.5.0/node_modules/@capacitor/splash-screen`)"
|
- "CapacitorSplashScreen (from `../../../../node_modules/.pnpm/@capacitor+splash-screen@5.0.6_@capacitor+core@5.5.0/node_modules/@capacitor/splash-screen`)"
|
||||||
- CordovaPlugins (from `../capacitor-cordova-ios-plugins`)
|
- CordovaPlugins (from `../capacitor-cordova-ios-plugins`)
|
||||||
- "TransistorsoftCapacitorBackgroundFetch (from `../../../../node_modules/.pnpm/@transistorsoft+capacitor-background-fetch@1.0.2_@capacitor+core@5.5.0/node_modules/@transistorsoft/capacitor-background-fetch`)"
|
- "TransistorsoftCapacitorBackgroundFetch (from `../../../../node_modules/.pnpm/@transistorsoft+capacitor-background-fetch@5.1.1_@capacitor+core@5.5.0/node_modules/@transistorsoft/capacitor-background-fetch`)"
|
||||||
|
|
||||||
SPEC REPOS:
|
SPEC REPOS:
|
||||||
trunk:
|
trunk:
|
||||||
@@ -102,7 +102,7 @@ EXTERNAL SOURCES:
|
|||||||
CordovaPlugins:
|
CordovaPlugins:
|
||||||
:path: "../capacitor-cordova-ios-plugins"
|
:path: "../capacitor-cordova-ios-plugins"
|
||||||
TransistorsoftCapacitorBackgroundFetch:
|
TransistorsoftCapacitorBackgroundFetch:
|
||||||
:path: "../../../../node_modules/.pnpm/@transistorsoft+capacitor-background-fetch@1.0.2_@capacitor+core@5.5.0/node_modules/@transistorsoft/capacitor-background-fetch"
|
:path: "../../../../node_modules/.pnpm/@transistorsoft+capacitor-background-fetch@5.1.1_@capacitor+core@5.5.0/node_modules/@transistorsoft/capacitor-background-fetch"
|
||||||
|
|
||||||
SPEC CHECKSUMS:
|
SPEC CHECKSUMS:
|
||||||
Capacitor: 57890b363df14d5d2d5d8461aa23e886cb34da2a
|
Capacitor: 57890b363df14d5d2d5d8461aa23e886cb34da2a
|
||||||
@@ -124,8 +124,8 @@ SPEC CHECKSUMS:
|
|||||||
CapacitorSplashScreen: 5fa2ab5e46cf5cc530cf16a51c80c7a986579ccd
|
CapacitorSplashScreen: 5fa2ab5e46cf5cc530cf16a51c80c7a986579ccd
|
||||||
CordovaPlugins: de5669381702d76ed5b1d442177a6a5fc3252a9d
|
CordovaPlugins: de5669381702d76ed5b1d442177a6a5fc3252a9d
|
||||||
SwiftKeychainWrapper: 807ba1d63c33a7d0613288512399cd1eda1e470c
|
SwiftKeychainWrapper: 807ba1d63c33a7d0613288512399cd1eda1e470c
|
||||||
TransistorsoftCapacitorBackgroundFetch: 74ca62dae7ec78639eaf3d0d1e24c595ada213dd
|
TransistorsoftCapacitorBackgroundFetch: ce4b3e01b898cef516e68485d2160a078016ee97
|
||||||
|
|
||||||
PODFILE CHECKSUM: 073b899f90bacc5049101cb9c562a168757d554e
|
PODFILE CHECKSUM: 229278f2c257e8ab555325c7115b2e187e8e628d
|
||||||
|
|
||||||
COCOAPODS: 1.13.0
|
COCOAPODS: 1.13.0
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2022 StApps
|
* Copyright (C) 2022 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
"build:prod": "ng build --configuration=production",
|
"build:prod": "ng build --configuration=production",
|
||||||
"build:stats": "ng build --configuration=production --stats-json",
|
"build:stats": "ng build --configuration=production --stats-json",
|
||||||
"changelog": "conventional-changelog -p angular -i src/assets/about/CHANGELOG.md -s -r 0",
|
"changelog": "conventional-changelog -p angular -i src/assets/about/CHANGELOG.md -s -r 0",
|
||||||
"check-icons": "node scripts/check-icon-correctness.mjs",
|
"check-icons": "ts-node-esm scripts/check-icon-correctness.ts",
|
||||||
"chromium:no-cors": "chromium --disable-web-security --user-data-dir=\".browser-data/chromium\"",
|
"chromium:no-cors": "chromium --disable-web-security --user-data-dir=\".browser-data/chromium\"",
|
||||||
"chromium:virtual-host": "chromium --host-resolver-rules=\"MAP mobile.app.uni-frankfurt.de:* localhost:8100\" --ignore-certificate-errors",
|
"chromium:virtual-host": "chromium --host-resolver-rules=\"MAP mobile.app.uni-frankfurt.de:* localhost:8100\" --ignore-certificate-errors",
|
||||||
"cypress:open": "cypress open",
|
"cypress:open": "cypress open",
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
"licenses": "license-checker --json > src/assets/about/licenses.json && ts-node ./scripts/accumulate-licenses.ts && git add src/assets/about/licenses.json",
|
"licenses": "license-checker --json > src/assets/about/licenses.json && ts-node ./scripts/accumulate-licenses.ts && git add src/assets/about/licenses.json",
|
||||||
"lint": "ng lint && stylelint \"**/*.scss\"",
|
"lint": "ng lint && stylelint \"**/*.scss\"",
|
||||||
"lint:fix": "eslint --fix -c .eslintrc.json --ignore-path .eslintignore --ext .ts,.html src/ && stylelint --fix \"**/*.scss\"",
|
"lint:fix": "eslint --fix -c .eslintrc.json --ignore-path .eslintignore --ext .ts,.html src/ && stylelint --fix \"**/*.scss\"",
|
||||||
"minify-icons": "node scripts/minify-icon-font.mjs",
|
"minify-icons": "ts-node-esm scripts/minify-icon-font.ts",
|
||||||
"postinstall": "jetify && echo \"skipping jetify in production mode\"",
|
"postinstall": "jetify && echo \"skipping jetify in production mode\"",
|
||||||
"preview": "http-server www --p 8101 -o",
|
"preview": "http-server www --p 8101 -o",
|
||||||
"push": "git push && git push origin \"v$npm_package_version\"",
|
"push": "git push && git push origin \"v$npm_package_version\"",
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2022 StApps
|
* Copyright (C) 2022 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
@@ -14,14 +13,13 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
import {omit, pickBy} from '@openstapps/collection-utils';
|
import {omit} from '../src/app/_helpers/collections/omit';
|
||||||
|
import {pickBy} from '../src/app/_helpers/collections/pick';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* accumulate and transform licenses based on two license files
|
* accumulate and transform licenses based on two license files
|
||||||
* @param {string} path
|
|
||||||
* @param {string} additionalLicensesPath
|
|
||||||
*/
|
*/
|
||||||
function accumulateFile(path, additionalLicensesPath) {
|
function accumulateFile(path: string, additionalLicensesPath: string) {
|
||||||
const packageJson = JSON.parse(fs.readFileSync('./package.json').toString());
|
const packageJson = JSON.parse(fs.readFileSync('./package.json').toString());
|
||||||
const dependencies = packageJson.dependencies;
|
const dependencies = packageJson.dependencies;
|
||||||
|
|
||||||
@@ -30,9 +28,10 @@ function accumulateFile(path, additionalLicensesPath) {
|
|||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
path,
|
path,
|
||||||
JSON.stringify(
|
JSON.stringify(
|
||||||
Object.entries({
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||||
...pickBy(JSON.parse(fs.readFileSync(path).toString()), (_, key) => {
|
Object.entries<any>({
|
||||||
const parts = /** @type {string} */ (key).split('@');
|
...pickBy(JSON.parse(fs.readFileSync(path).toString()), (_, key: string) => {
|
||||||
|
const parts = key.split('@');
|
||||||
|
|
||||||
return dependencies[parts.slice(0, -1).join('@')] === parts[parts.length - 1];
|
return dependencies[parts.slice(0, -1).join('@')] === parts[parts.length - 1];
|
||||||
}),
|
}),
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2022 StApps
|
* Copyright (C) 2022 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
@@ -13,18 +12,18 @@
|
|||||||
* You should have received a copy of the GNU General Public License along with
|
* You should have received a copy of the GNU General Public License along with
|
||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {openSync} from 'fontkit';
|
import fontkit, {Font} from 'fontkit';
|
||||||
import config from '../icons.config.mjs';
|
import config from '../icons.config';
|
||||||
import {existsSync} from 'fs';
|
import {existsSync} from 'fs';
|
||||||
import {getUsedIconsHtml, getUsedIconsTS} from './gather-used-icons.mjs';
|
import {getUsedIconsHtml, getUsedIconsTS} from './gather-used-icons';
|
||||||
|
|
||||||
const commandName = '"npm run minify-icons"';
|
const commandName = '"npm run minify-icons"';
|
||||||
const originalFont = openSync(config.inputPath);
|
const originalFont = fontkit.openSync(config.inputPath);
|
||||||
if (!existsSync(config.outputPath)) {
|
if (!existsSync(config.outputPath)) {
|
||||||
console.error(`Minified font not found. Run ${commandName} first.`);
|
console.error(`Minified font not found. Run ${commandName} first.`);
|
||||||
process.exit(-1);
|
process.exit(-1);
|
||||||
}
|
}
|
||||||
const modifiedFont = openSync(config.outputPath);
|
const modifiedFont = fontkit.openSync(config.outputPath);
|
||||||
|
|
||||||
let success = true;
|
let success = true;
|
||||||
|
|
||||||
@@ -49,9 +48,9 @@ async function checkAll() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Record<string, string[]>} icons
|
*
|
||||||
*/
|
*/
|
||||||
function check(icons) {
|
function check(icons: Record<string, string[]>) {
|
||||||
for (const [purpose, iconSet] of Object.entries(icons)) {
|
for (const [purpose, iconSet] of Object.entries(icons)) {
|
||||||
for (const icon of iconSet) {
|
for (const icon of iconSet) {
|
||||||
if (!hasIcon(originalFont, icon)) {
|
if (!hasIcon(originalFont, icon)) {
|
||||||
@@ -66,9 +65,8 @@ function check(icons) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {import('fontkit').Font} font
|
*
|
||||||
* @param {string} icon
|
|
||||||
*/
|
*/
|
||||||
function hasIcon(font, icon) {
|
function hasIcon(font: Font, icon: string) {
|
||||||
return font.layout(icon).glyphs.some(it => it.isLigature);
|
return font.layout(icon).glyphs.some(it => it.isLigature);
|
||||||
}
|
}
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2022 StApps
|
* Copyright (C) 2022 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
@@ -15,33 +14,31 @@
|
|||||||
*/
|
*/
|
||||||
import {glob} from 'glob';
|
import {glob} from 'glob';
|
||||||
import {readFileSync} from 'fs';
|
import {readFileSync} from 'fs';
|
||||||
import {matchPropertyContent, matchTagProperties} from '../src/app/util/ion-icon/icon-match.mjs';
|
import {matchPropertyContent, matchTagProperties} from '../src/app/util/ion-icon/icon-match';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns {Promise<Record<string, string[]>>}
|
*
|
||||||
*/
|
*/
|
||||||
export async function getUsedIconsHtml(pattern = 'src/**/*.html') {
|
export async function getUsedIconsHtml(pattern = 'src/**/*.html'): Promise<Record<string, string[]>> {
|
||||||
return Object.fromEntries(
|
return Object.fromEntries(
|
||||||
(await glob(pattern))
|
(await glob(pattern))
|
||||||
.map(file => [
|
.map(file => [
|
||||||
file,
|
file,
|
||||||
/** @type {string[]} */ (
|
(readFileSync(file, 'utf8')
|
||||||
readFileSync(file, 'utf8')
|
|
||||||
.match(matchTagProperties('ion-icon'))
|
.match(matchTagProperties('ion-icon'))
|
||||||
?.flatMap(match => {
|
?.flatMap(match => {
|
||||||
return match.match(matchPropertyContent(['name', 'md', 'ios']));
|
return match.match(matchPropertyContent(['name', 'md', 'ios']));
|
||||||
})
|
})
|
||||||
.filter(it => !!it)
|
.filter(it => !!it) as string[]) || [],
|
||||||
) || [],
|
|
||||||
])
|
])
|
||||||
.filter(([, values]) => values.length > 0),
|
.filter(([, values]) => values.length > 0),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @returns {Promise<Record<string, string[]>>}
|
*
|
||||||
*/
|
*/
|
||||||
export async function getUsedIconsTS(pattern = 'src/**/*.ts') {
|
export async function getUsedIconsTS(pattern = 'src/**/*.ts'): Promise<Record<string, string[]>> {
|
||||||
return Object.fromEntries(
|
return Object.fromEntries(
|
||||||
(await glob(pattern))
|
(await glob(pattern))
|
||||||
.map(file => [file, readFileSync(file, 'utf8').match(/(?<=Icon`)[\w-]+(?=`)/g) || []])
|
.map(file => [file, readFileSync(file, 'utf8').match(/(?<=Icon`)[\w-]+(?=`)/g) || []])
|
||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2022 StApps
|
* Copyright (C) 2022 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
@@ -13,17 +12,18 @@
|
|||||||
* You should have received a copy of the GNU General Public License along with
|
* You should have received a copy of the GNU General Public License along with
|
||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
import {openSync} from 'fontkit';
|
|
||||||
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
||||||
|
import fontkit from 'fontkit';
|
||||||
import {exec} from 'child_process';
|
import {exec} from 'child_process';
|
||||||
import config from '../icons.config.mjs';
|
import config from '../icons.config';
|
||||||
import {statSync} from 'fs';
|
import {statSync} from 'fs';
|
||||||
import {getUsedIconsHtml, getUsedIconsTS} from './gather-used-icons.mjs';
|
import {getUsedIconsHtml, getUsedIconsTS} from './gather-used-icons';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string[] | string} command
|
*
|
||||||
* @returns {Promise<string>}
|
|
||||||
*/
|
*/
|
||||||
async function run(command) {
|
async function run(command: string[] | string): Promise<string> {
|
||||||
const fullCommand = Array.isArray(command) ? command.join(' ') : command;
|
const fullCommand = Array.isArray(command) ? command.join(' ') : command;
|
||||||
console.log(`>> ${fullCommand}`);
|
console.log(`>> ${fullCommand}`);
|
||||||
|
|
||||||
@@ -44,8 +44,7 @@ async function run(command) {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
async function minifyIconFont() {
|
async function minifyIconFont() {
|
||||||
/** @type {Set<string>} */
|
const icons = new Set<string>();
|
||||||
const icons = new Set();
|
|
||||||
|
|
||||||
for (const iconSet of [
|
for (const iconSet of [
|
||||||
...Object.values(config.additionalIcons || []),
|
...Object.values(config.additionalIcons || []),
|
||||||
@@ -58,10 +57,9 @@ async function minifyIconFont() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
console.log('Icons used:', [...icons.values()].sort());
|
console.log('Icons used:', [...icons.values()].sort());
|
||||||
const font = openSync(config.inputPath);
|
const font = fontkit.openSync(config.inputPath);
|
||||||
|
|
||||||
/** @type {string[]} */
|
const glyphs: string[] = ['5f-7a', '30-39'];
|
||||||
const glyphs = ['5f-7a', '30-39'];
|
|
||||||
for (const icon of icons) {
|
for (const icon of icons) {
|
||||||
const iconGlyphs = font.layout(icon).glyphs;
|
const iconGlyphs = font.layout(icon).glyphs;
|
||||||
if (iconGlyphs.length === 0) {
|
if (iconGlyphs.length === 0) {
|
||||||
@@ -72,7 +70,7 @@ async function minifyIconFont() {
|
|||||||
const codePoints = iconGlyphs
|
const codePoints = iconGlyphs
|
||||||
.flatMap(it => font.stringsForGlyph(it.id))
|
.flatMap(it => font.stringsForGlyph(it.id))
|
||||||
.flatMap(it => [...it])
|
.flatMap(it => [...it])
|
||||||
.map(it => it.codePointAt(0).toString(16));
|
.map(it => it.codePointAt(0)!.toString(16));
|
||||||
|
|
||||||
if (codePoints.length === 0) {
|
if (codePoints.length === 0) {
|
||||||
if (config.codePoints?.[icon]) {
|
if (config.codePoints?.[icon]) {
|
||||||
@@ -116,10 +114,8 @@ minifyIconFont();
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Bytes to respective units
|
* Bytes to respective units
|
||||||
* @param {number} value
|
|
||||||
* @returns {string}
|
|
||||||
*/
|
*/
|
||||||
function toByteUnit(value) {
|
function toByteUnit(value: number): string {
|
||||||
if (value < 1024) {
|
if (value < 1024) {
|
||||||
return `${value}B`;
|
return `${value}B`;
|
||||||
} else if (value < 1024 * 1024) {
|
} else if (value < 1024 * 1024) {
|
||||||
7
frontend/app/scripts/tsconfig.json
Normal file
7
frontend/app/scripts/tsconfig.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"compilerOptions": {
|
||||||
|
"module": "CommonJS",
|
||||||
|
"moduleResolution": "Node"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -21,7 +21,7 @@ import {
|
|||||||
SCThingOriginType,
|
SCThingOriginType,
|
||||||
SCThingType,
|
SCThingType,
|
||||||
} from '@openstapps/core';
|
} from '@openstapps/core';
|
||||||
import packageInfo from '@openstapps/core/package.json';
|
import {CORE_VERSION} from '@openstapps/core';
|
||||||
import {Polygon} from 'geojson';
|
import {Polygon} from 'geojson';
|
||||||
|
|
||||||
// provides sample aggregations to be used in tests or backendless development
|
// provides sample aggregations to be used in tests or backendless development
|
||||||
@@ -195,7 +195,7 @@ export const sampleIndexResponse: SCIndexResponse = {
|
|||||||
},
|
},
|
||||||
auth: {},
|
auth: {},
|
||||||
backend: {
|
backend: {
|
||||||
SCVersion: packageInfo.version,
|
SCVersion: CORE_VERSION,
|
||||||
externalRequestTimeout: 5000,
|
externalRequestTimeout: 5000,
|
||||||
hiddenTypes: [SCThingType.DateSeries, SCThingType.Diff, SCThingType.Floor],
|
hiddenTypes: [SCThingType.DateSeries, SCThingType.Diff, SCThingType.Floor],
|
||||||
mappingIgnoredTags: [],
|
mappingIgnoredTags: [],
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import {Client} from '@openstapps/api';
|
import {Client} from '@openstapps/api';
|
||||||
import {SCAppConfiguration, SCIndexResponse} from '@openstapps/core';
|
import {SCAppConfiguration, SCIndexResponse} from '@openstapps/core';
|
||||||
import packageInfo from '@openstapps/core/package.json';
|
import {CORE_VERSION} from '@openstapps/core';
|
||||||
import {NGXLogger} from 'ngx-logger';
|
import {NGXLogger} from 'ngx-logger';
|
||||||
import {environment} from '../../../environments/environment';
|
import {environment} from '../../../environments/environment';
|
||||||
import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider';
|
import {StAppsWebHttpClient} from '../data/stapps-web-http-client.provider';
|
||||||
@@ -55,7 +55,7 @@ export class ConfigProvider {
|
|||||||
/**
|
/**
|
||||||
* Version of the @openstapps/core package that app is using
|
* Version of the @openstapps/core package that app is using
|
||||||
*/
|
*/
|
||||||
scVersion = packageInfo.version;
|
scVersion = CORE_VERSION;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* First session indicator (config not found in storage)
|
* First session indicator (config not found in storage)
|
||||||
|
|||||||
@@ -13,7 +13,8 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
/* eslint-disable unicorn/no-null */
|
/* eslint-disable unicorn/no-null */
|
||||||
import {matchPropertyContent, matchTagProperties} from './icon-match.mjs';
|
|
||||||
|
import {matchPropertyContent, matchTagProperties} from './icon-match';
|
||||||
|
|
||||||
describe('matchTagProperties', function () {
|
describe('matchTagProperties', function () {
|
||||||
const regex = matchTagProperties('test');
|
const regex = matchTagProperties('test');
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// @ts-check
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2022 StApps
|
* Copyright (C) 2022 StApps
|
||||||
* This program is free software: you can redistribute it and/or modify it
|
* This program is free software: you can redistribute it and/or modify it
|
||||||
@@ -15,16 +14,16 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string} tag
|
*
|
||||||
*/
|
*/
|
||||||
export function matchTagProperties(tag) {
|
export function matchTagProperties(tag: string) {
|
||||||
return new RegExp(`(?<=<${tag})[\\s\\S]*?(?=>\\s*<\\/${tag}\\s*>)`, 'g');
|
return new RegExp(`(?<=<${tag})[\\s\\S]*?(?=>\\s*<\\/${tag}\\s*>)`, 'g');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {string[]} properties
|
*
|
||||||
*/
|
*/
|
||||||
export function matchPropertyContent(properties) {
|
export function matchPropertyContent(properties: string[]) {
|
||||||
const names = properties.join('|');
|
const names = properties.join('|');
|
||||||
|
|
||||||
return new RegExp(`((?<=(${names})=")[\\w-]+(?="))|((?<=\\[(${names})]="')[\\w-]+(?='"))`, 'g');
|
return new RegExp(`((?<=(${names})=")[\\w-]+(?="))|((?<=\\[(${names})]="')[\\w-]+(?='"))`, 'g');
|
||||||
@@ -5,11 +5,9 @@
|
|||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"outDir": "./dist/out-tsc",
|
"outDir": "./dist/out-tsc",
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"emitDecoratorMetadata": true,
|
|
||||||
"skipLibCheck": false,
|
"skipLibCheck": false,
|
||||||
"isolatedModules": false,
|
"isolatedModules": false,
|
||||||
"strictPropertyInitialization": false,
|
"strictPropertyInitialization": false,
|
||||||
"resolveJsonModule": true,
|
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"useDefineForClassFields": false,
|
"useDefineForClassFields": false,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:18-alpine3.18
|
FROM node:18-alpine
|
||||||
|
|
||||||
RUN apk update && apk add git curl jq && mkdir -p /opt
|
RUN apk update && apk add git curl jq && mkdir -p /opt
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM node:18-alpine3.18
|
FROM node:18-alpine
|
||||||
|
|
||||||
RUN apk update && apk add git jq curl python3 build-base
|
RUN apk update && apk add git jq curl python3 build-base
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,8 @@
|
|||||||
"dotenv-cli": "7.2.1",
|
"dotenv-cli": "7.2.1",
|
||||||
"glob": "10.2.7",
|
"glob": "10.2.7",
|
||||||
"junit-report-merger": "6.0.2",
|
"junit-report-merger": "6.0.2",
|
||||||
"syncpack": "10.5.1",
|
"prettier": "3.1.1",
|
||||||
|
"syncpack": "12.3.0",
|
||||||
"turbo": "1.10.16",
|
"turbo": "1.10.16",
|
||||||
"turbo-ignore": "1.10.16",
|
"turbo-ignore": "1.10.16",
|
||||||
"typedoc": "0.24.8",
|
"typedoc": "0.24.8",
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ export class Converter {
|
|||||||
path: sourcePath,
|
path: sourcePath,
|
||||||
sortProps: true,
|
sortProps: true,
|
||||||
topRef: false,
|
topRef: false,
|
||||||
|
skipTypeCheck: true,
|
||||||
tsconfig: path.join(getTsconfigPath(projectPath), 'tsconfig.json'),
|
tsconfig: path.join(getTsconfigPath(projectPath), 'tsconfig.json'),
|
||||||
type: 'SC',
|
type: 'SC',
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,5 +3,6 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"noUnusedLocals": false,
|
"noUnusedLocals": false,
|
||||||
"stripInternal": true
|
"stripInternal": true
|
||||||
}
|
},
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,15 +76,6 @@
|
|||||||
"typedoc": "0.24.8",
|
"typedoc": "0.24.8",
|
||||||
"typescript": "5.1.6"
|
"typescript": "5.1.6"
|
||||||
},
|
},
|
||||||
"tsup": {
|
|
||||||
"entry": [
|
|
||||||
"src/index.ts"
|
|
||||||
],
|
|
||||||
"sourcemap": true,
|
|
||||||
"clean": true,
|
|
||||||
"format": "esm",
|
|
||||||
"outDir": "lib"
|
|
||||||
},
|
|
||||||
"prettier": "@openstapps/prettier-config",
|
"prettier": "@openstapps/prettier-config",
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"extends": [
|
"extends": [
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
export const CORE_VERSION = process.env.CORE_VERSION!;
|
||||||
|
|
||||||
export * from './guards.js';
|
export * from './guards.js';
|
||||||
export * from './meta.js';
|
export * from './meta.js';
|
||||||
export * from './translator.js';
|
export * from './translator.js';
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ export interface SCValueFilterArguments extends SCSearchAbstractFilterArguments
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Value to filter. One or more values has to match the field exactly.
|
* Value to filter. One or more values has to match the field exactly.
|
||||||
|
*
|
||||||
|
* Leaving the value out will check if the field exists.
|
||||||
*/
|
*/
|
||||||
value: string | string[];
|
value?: string | string[];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
13
packages/core/tsup.config.ts
Normal file
13
packages/core/tsup.config.ts
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
import {defineConfig} from 'tsup';
|
||||||
|
import packageJson from './package.json' assert {type: 'json'};
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
entry: ['src/index.ts'],
|
||||||
|
sourcemap: true,
|
||||||
|
clean: true,
|
||||||
|
format: 'esm',
|
||||||
|
outDir: 'lib',
|
||||||
|
env: {
|
||||||
|
CORE_VERSION: packageJson.version,
|
||||||
|
},
|
||||||
|
});
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"extension": ["ts"],
|
|
||||||
"require": "ts-node/register",
|
|
||||||
"reporter": "mocha-junit-reporter",
|
|
||||||
"reporter-option": ["mochaFile=coverage/report-junit.xml"],
|
|
||||||
"spec": ["test/**/*.spec.ts"]
|
|
||||||
}
|
|
||||||
@@ -18,10 +18,8 @@
|
|||||||
"noUnusedParameters": true,
|
"noUnusedParameters": true,
|
||||||
"outDir": "./lib/",
|
"outDir": "./lib/",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
"target": "ES2020"
|
"target": "ES2020"
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": ["./lib/", "./test/"]
|
||||||
"./lib/",
|
|
||||||
"./test/"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@openstapps/tsconfig"
|
"extends": "@openstapps/tsconfig",
|
||||||
|
"exclude": ["lib", "app.js"]
|
||||||
}
|
}
|
||||||
|
|||||||
257
pnpm-lock.yaml
generated
257
pnpm-lock.yaml
generated
@@ -29,9 +29,12 @@ importers:
|
|||||||
junit-report-merger:
|
junit-report-merger:
|
||||||
specifier: 6.0.2
|
specifier: 6.0.2
|
||||||
version: 6.0.2
|
version: 6.0.2
|
||||||
|
prettier:
|
||||||
|
specifier: 3.1.1
|
||||||
|
version: 3.1.1
|
||||||
syncpack:
|
syncpack:
|
||||||
specifier: 10.5.1
|
specifier: 12.3.0
|
||||||
version: 10.5.1
|
version: 12.3.0(typescript@5.1.6)
|
||||||
turbo:
|
turbo:
|
||||||
specifier: 1.10.16
|
specifier: 1.10.16
|
||||||
version: 1.10.16
|
version: 1.10.16
|
||||||
@@ -203,7 +206,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -220,8 +223,8 @@ importers:
|
|||||||
specifier: 1.3.5
|
specifier: 1.3.5
|
||||||
version: 1.3.5
|
version: 1.3.5
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
sinon:
|
sinon:
|
||||||
specifier: 15.0.4
|
specifier: 15.0.4
|
||||||
version: 15.0.4
|
version: 15.0.4
|
||||||
@@ -335,7 +338,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -346,8 +349,8 @@ importers:
|
|||||||
specifier: 2.2.0
|
specifier: 2.2.0
|
||||||
version: 2.2.0(mocha@10.2.0)
|
version: 2.2.0(mocha@10.2.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
sinon:
|
sinon:
|
||||||
specifier: 15.0.4
|
specifier: 15.0.4
|
||||||
version: 15.0.4
|
version: 15.0.4
|
||||||
@@ -389,13 +392,13 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
|
|
||||||
configuration/eslint-config:
|
configuration/eslint-config:
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -413,7 +416,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -434,8 +437,8 @@ importers:
|
|||||||
configuration/prettier-config:
|
configuration/prettier-config:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
|
|
||||||
configuration/projectmanagement:
|
configuration/projectmanagement:
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -520,7 +523,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -531,8 +534,8 @@ importers:
|
|||||||
specifier: 2.2.0
|
specifier: 2.2.0
|
||||||
version: 2.2.0(mocha@10.2.0)
|
version: 2.2.0(mocha@10.2.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
ts-node:
|
ts-node:
|
||||||
specifier: 10.9.1
|
specifier: 10.9.1
|
||||||
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
||||||
@@ -613,7 +616,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -627,8 +630,8 @@ importers:
|
|||||||
specifier: 13.3.1
|
specifier: 13.3.1
|
||||||
version: 13.3.1
|
version: 13.3.1
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
ts-node:
|
ts-node:
|
||||||
specifier: 10.9.1
|
specifier: 10.9.1
|
||||||
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
||||||
@@ -700,13 +703,13 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
tsup:
|
tsup:
|
||||||
specifier: 6.7.0
|
specifier: 6.7.0
|
||||||
version: 6.7.0(ts-node@10.9.1)(typescript@5.1.6)
|
version: 6.7.0(ts-node@10.9.1)(typescript@5.1.6)
|
||||||
@@ -1025,7 +1028,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -1078,8 +1081,8 @@ importers:
|
|||||||
specifier: 25.0.1
|
specifier: 25.0.1
|
||||||
version: 25.0.1
|
version: 25.0.1
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
stylelint:
|
stylelint:
|
||||||
specifier: 15.10.1
|
specifier: 15.10.1
|
||||||
version: 15.10.1(typescript@5.1.6)
|
version: 15.10.1(typescript@5.1.6)
|
||||||
@@ -1187,7 +1190,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -1198,8 +1201,8 @@ importers:
|
|||||||
specifier: 2.2.0
|
specifier: 2.2.0
|
||||||
version: 2.2.0(mocha@10.2.0)
|
version: 2.2.0(mocha@10.2.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
traverse:
|
traverse:
|
||||||
specifier: 0.6.7
|
specifier: 0.6.7
|
||||||
version: 0.6.7
|
version: 0.6.7
|
||||||
@@ -1313,8 +1316,8 @@ importers:
|
|||||||
specifier: 13.3.1
|
specifier: 13.3.1
|
||||||
version: 13.3.1
|
version: 13.3.1
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
ts-node:
|
ts-node:
|
||||||
specifier: 10.9.1
|
specifier: 10.9.1
|
||||||
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
||||||
@@ -1417,7 +1420,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -1431,8 +1434,8 @@ importers:
|
|||||||
specifier: 13.3.1
|
specifier: 13.3.1
|
||||||
version: 13.3.1
|
version: 13.3.1
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
ts-node:
|
ts-node:
|
||||||
specifier: 10.9.1
|
specifier: 10.9.1
|
||||||
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
||||||
@@ -1489,7 +1492,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -1500,8 +1503,8 @@ importers:
|
|||||||
specifier: 2.2.0
|
specifier: 2.2.0
|
||||||
version: 2.2.0(mocha@10.2.0)
|
version: 2.2.0(mocha@10.2.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
ts-node:
|
ts-node:
|
||||||
specifier: 10.9.1
|
specifier: 10.9.1
|
||||||
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
||||||
@@ -1598,7 +1601,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -1609,8 +1612,8 @@ importers:
|
|||||||
specifier: 2.2.0
|
specifier: 2.2.0
|
||||||
version: 2.2.0(mocha@10.2.0)
|
version: 2.2.0(mocha@10.2.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
source-map-support:
|
source-map-support:
|
||||||
specifier: 0.5.21
|
specifier: 0.5.21
|
||||||
version: 0.5.21
|
version: 0.5.21
|
||||||
@@ -1746,7 +1749,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -1760,8 +1763,8 @@ importers:
|
|||||||
specifier: 13.3.1
|
specifier: 13.3.1
|
||||||
version: 13.3.1
|
version: 13.3.1
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
ts-node:
|
ts-node:
|
||||||
specifier: 10.9.1
|
specifier: 10.9.1
|
||||||
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
||||||
@@ -1831,7 +1834,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -1842,8 +1845,8 @@ importers:
|
|||||||
specifier: 2.2.0
|
specifier: 2.2.0
|
||||||
version: 2.2.0(mocha@10.2.0)
|
version: 2.2.0(mocha@10.2.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
ts-node:
|
ts-node:
|
||||||
specifier: 10.9.1
|
specifier: 10.9.1
|
||||||
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
||||||
@@ -1919,7 +1922,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -1933,8 +1936,8 @@ importers:
|
|||||||
specifier: 13.3.1
|
specifier: 13.3.1
|
||||||
version: 13.3.1
|
version: 13.3.1
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
rimraf:
|
rimraf:
|
||||||
specifier: 5.0.0
|
specifier: 5.0.0
|
||||||
version: 5.0.0
|
version: 5.0.0
|
||||||
@@ -1983,13 +1986,13 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
ts-node:
|
ts-node:
|
||||||
specifier: 10.9.1
|
specifier: 10.9.1
|
||||||
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
||||||
@@ -2071,7 +2074,7 @@ importers:
|
|||||||
version: 46.4.2(eslint@8.43.0)
|
version: 46.4.2(eslint@8.43.0)
|
||||||
eslint-plugin-prettier:
|
eslint-plugin-prettier:
|
||||||
specifier: 4.2.1
|
specifier: 4.2.1
|
||||||
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0)
|
version: 4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1)
|
||||||
eslint-plugin-unicorn:
|
eslint-plugin-unicorn:
|
||||||
specifier: 47.0.0
|
specifier: 47.0.0
|
||||||
version: 47.0.0(eslint@8.43.0)
|
version: 47.0.0(eslint@8.43.0)
|
||||||
@@ -2082,8 +2085,8 @@ importers:
|
|||||||
specifier: 2.2.0
|
specifier: 2.2.0
|
||||||
version: 2.2.0(mocha@10.2.0)
|
version: 2.2.0(mocha@10.2.0)
|
||||||
prettier:
|
prettier:
|
||||||
specifier: 3.1.0
|
specifier: 3.1.1
|
||||||
version: 3.1.0
|
version: 3.1.1
|
||||||
ts-node:
|
ts-node:
|
||||||
specifier: 10.9.1
|
specifier: 10.9.1
|
||||||
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
version: 10.9.1(@types/node@18.15.3)(typescript@5.1.6)
|
||||||
@@ -2216,7 +2219,7 @@ packages:
|
|||||||
picomatch: 2.3.1
|
picomatch: 2.3.1
|
||||||
piscina: 3.2.0
|
piscina: 3.2.0
|
||||||
postcss: 8.4.24
|
postcss: 8.4.24
|
||||||
postcss-loader: 7.3.2(postcss@8.4.24)(typescript@5.1.6)(webpack@5.86.0)
|
postcss-loader: 7.3.2(postcss@8.4.24)(webpack@5.86.0)
|
||||||
resolve-url-loader: 5.0.0
|
resolve-url-loader: 5.0.0
|
||||||
rxjs: 7.8.1
|
rxjs: 7.8.1
|
||||||
sass: 1.63.2
|
sass: 1.63.2
|
||||||
@@ -5503,6 +5506,16 @@ packages:
|
|||||||
engines: {node: '>=10.0.0'}
|
engines: {node: '>=10.0.0'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/@effect/schema@0.56.1(effect@2.0.0-next.62)(fast-check@3.15.0):
|
||||||
|
resolution: {integrity: sha512-cfEyHLXPdzSKzJU/yYrPjFd0iVHPydh+NT0sgTe4bzXbcvOsKZuvQ86cAAwXN7lxY0N5cPes9ACxUxTdkEaNlw==}
|
||||||
|
peerDependencies:
|
||||||
|
effect: 2.0.0-next.62
|
||||||
|
fast-check: ^3.13.2
|
||||||
|
dependencies:
|
||||||
|
effect: 2.0.0-next.62
|
||||||
|
fast-check: 3.15.0
|
||||||
|
dev: true
|
||||||
|
|
||||||
/@elastic/elasticsearch@8.4.0:
|
/@elastic/elasticsearch@8.4.0:
|
||||||
resolution: {integrity: sha512-0QZDBePnb5a+d76zjlMYq96IDf0AOuGP7JHugFUYlYwTC7rZvROuZSpoUsvpUjNH2CzMqWgNLIekIR6EHRMIQA==}
|
resolution: {integrity: sha512-0QZDBePnb5a+d76zjlMYq96IDf0AOuGP7JHugFUYlYwTC7rZvROuZSpoUsvpUjNH2CzMqWgNLIekIR6EHRMIQA==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
@@ -6555,7 +6568,7 @@ packages:
|
|||||||
resolution: {integrity: sha512-UWRmygBsyj4bVXvDiqSccwT1kmsorcwQwaIy30yVh8T+Gspx4OlC0shX1y+ZuwXZvgnafmpRYKks0bAu9urJew==}
|
resolution: {integrity: sha512-UWRmygBsyj4bVXvDiqSccwT1kmsorcwQwaIy30yVh8T+Gspx4OlC0shX1y+ZuwXZvgnafmpRYKks0bAu9urJew==}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@xml-tools/parser': 1.0.11
|
'@xml-tools/parser': 1.0.11
|
||||||
prettier: 3.1.0
|
prettier: 3.1.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@schematics/angular@12.2.18:
|
/@schematics/angular@12.2.18:
|
||||||
@@ -9262,6 +9275,11 @@ packages:
|
|||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/commander@11.1.0:
|
||||||
|
resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
|
||||||
|
engines: {node: '>=16'}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/commander@2.20.3:
|
/commander@2.20.3:
|
||||||
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
|
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
|
||||||
dev: true
|
dev: true
|
||||||
@@ -9690,6 +9708,22 @@ packages:
|
|||||||
typescript: 5.1.6
|
typescript: 5.1.6
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/cosmiconfig@9.0.0(typescript@5.1.6):
|
||||||
|
resolution: {integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==}
|
||||||
|
engines: {node: '>=14'}
|
||||||
|
peerDependencies:
|
||||||
|
typescript: '>=4.9.5'
|
||||||
|
peerDependenciesMeta:
|
||||||
|
typescript:
|
||||||
|
optional: true
|
||||||
|
dependencies:
|
||||||
|
env-paths: 2.2.1
|
||||||
|
import-fresh: 3.3.0
|
||||||
|
js-yaml: 4.1.0
|
||||||
|
parse-json: 5.2.0
|
||||||
|
typescript: 5.1.6
|
||||||
|
dev: true
|
||||||
|
|
||||||
/cpu-features@0.0.9:
|
/cpu-features@0.0.9:
|
||||||
resolution: {integrity: sha512-AKjgn2rP2yJyfbepsmLfiYcmtNn/2eUvocUyM/09yB0YDiz39HteK/5/T4Onf0pmdYDMgkBoGvRLvEguzyL7wQ==}
|
resolution: {integrity: sha512-AKjgn2rP2yJyfbepsmLfiYcmtNn/2eUvocUyM/09yB0YDiz39HteK/5/T4Onf0pmdYDMgkBoGvRLvEguzyL7wQ==}
|
||||||
engines: {node: '>=10.0.0'}
|
engines: {node: '>=10.0.0'}
|
||||||
@@ -10798,6 +10832,10 @@ packages:
|
|||||||
/ee-first@1.1.1:
|
/ee-first@1.1.1:
|
||||||
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
|
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
|
||||||
|
|
||||||
|
/effect@2.0.0-next.62:
|
||||||
|
resolution: {integrity: sha512-fJhLzf5oouL4WZP314ZJgZz5Bel7OHTY+YFxO06sW1mSvqJz0s28y7jDHr5zhtTNM1YRvzbeLYUYfNaJYKqx1A==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/ejs@3.1.9:
|
/ejs@3.1.9:
|
||||||
resolution: {integrity: sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==}
|
resolution: {integrity: sha512-rC+QVNMJWv+MtPgkt0y+0rVEIdbtxVADApW9JXrUVlzHetgcyczP/E7DJmWJ4fJCZF2cPcBk0laWO9ZHMG3DmQ==}
|
||||||
engines: {node: '>=0.10.0'}
|
engines: {node: '>=0.10.0'}
|
||||||
@@ -11177,7 +11215,7 @@ packages:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
/eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.0):
|
/eslint-plugin-prettier@4.2.1(eslint-config-prettier@8.8.0)(eslint@8.43.0)(prettier@3.1.1):
|
||||||
resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==}
|
resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==}
|
||||||
engines: {node: '>=12.0.0'}
|
engines: {node: '>=12.0.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
@@ -11190,7 +11228,7 @@ packages:
|
|||||||
dependencies:
|
dependencies:
|
||||||
eslint: 8.43.0
|
eslint: 8.43.0
|
||||||
eslint-config-prettier: 8.8.0(eslint@8.43.0)
|
eslint-config-prettier: 8.8.0(eslint@8.43.0)
|
||||||
prettier: 3.1.0
|
prettier: 3.1.1
|
||||||
prettier-linter-helpers: 1.0.0
|
prettier-linter-helpers: 1.0.0
|
||||||
|
|
||||||
/eslint-plugin-unicorn@47.0.0(eslint@8.43.0):
|
/eslint-plugin-unicorn@47.0.0(eslint@8.43.0):
|
||||||
@@ -11547,6 +11585,13 @@ packages:
|
|||||||
color-support: 1.1.3
|
color-support: 1.1.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/fast-check@3.15.0:
|
||||||
|
resolution: {integrity: sha512-iBz6c+EXL6+nI931x/sbZs1JYTZtLG6Cko0ouS8LRTikhDR7+wZk4TYzdRavlnByBs2G6+nuuJ7NYL9QplNt8Q==}
|
||||||
|
engines: {node: '>=8.0.0'}
|
||||||
|
dependencies:
|
||||||
|
pure-rand: 6.0.4
|
||||||
|
dev: true
|
||||||
|
|
||||||
/fast-deep-equal@3.1.3:
|
/fast-deep-equal@3.1.3:
|
||||||
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
|
resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
|
||||||
|
|
||||||
@@ -12147,18 +12192,6 @@ packages:
|
|||||||
resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}
|
resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/glob@10.2.6:
|
|
||||||
resolution: {integrity: sha512-U/rnDpXJGF414QQQZv5uVsabTVxMSwzS5CH0p3DRCIV6ownl4f7PzGnkGmvlum2wB+9RlJWJZ6ACU1INnBqiPA==}
|
|
||||||
engines: {node: '>=16 || 14 >=14.17'}
|
|
||||||
hasBin: true
|
|
||||||
dependencies:
|
|
||||||
foreground-child: 3.1.1
|
|
||||||
jackspeak: 2.3.6
|
|
||||||
minimatch: 9.0.3
|
|
||||||
minipass: 6.0.2
|
|
||||||
path-scurry: 1.10.1
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/glob@10.2.7:
|
/glob@10.2.7:
|
||||||
resolution: {integrity: sha512-jTKehsravOJo8IJxUGfZILnkvVJM/MOfHRs8QcXolVef2zNI9Tqyy5+SeuOAZd3upViEZQLyFpQhYiHLrMUNmA==}
|
resolution: {integrity: sha512-jTKehsravOJo8IJxUGfZILnkvVJM/MOfHRs8QcXolVef2zNI9Tqyy5+SeuOAZd3upViEZQLyFpQhYiHLrMUNmA==}
|
||||||
engines: {node: '>=16 || 14 >=14.17'}
|
engines: {node: '>=16 || 14 >=14.17'}
|
||||||
@@ -12520,6 +12553,13 @@ packages:
|
|||||||
lru-cache: 7.18.3
|
lru-cache: 7.18.3
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/hosted-git-info@7.0.1:
|
||||||
|
resolution: {integrity: sha512-+K84LB1DYwMHoHSgaOY/Jfhw3ucPmSET5v98Ke/HdNSw4a0UktWzyW1mjhjpuxxTqOOsfWT/7iVshHmVZ4IpOA==}
|
||||||
|
engines: {node: ^16.14.0 || >=18.0.0}
|
||||||
|
dependencies:
|
||||||
|
lru-cache: 10.0.1
|
||||||
|
dev: true
|
||||||
|
|
||||||
/hpack.js@2.1.6:
|
/hpack.js@2.1.6:
|
||||||
resolution: {integrity: sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==}
|
resolution: {integrity: sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ==}
|
||||||
dependencies:
|
dependencies:
|
||||||
@@ -13433,15 +13473,6 @@ packages:
|
|||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@pkgjs/parseargs': 0.11.0
|
'@pkgjs/parseargs': 0.11.0
|
||||||
|
|
||||||
/jackspeak@2.3.6:
|
|
||||||
resolution: {integrity: sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ==}
|
|
||||||
engines: {node: '>=14'}
|
|
||||||
dependencies:
|
|
||||||
'@isaacs/cliui': 8.0.2
|
|
||||||
optionalDependencies:
|
|
||||||
'@pkgjs/parseargs': 0.11.0
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/jake@10.8.7:
|
/jake@10.8.7:
|
||||||
resolution: {integrity: sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==}
|
resolution: {integrity: sha512-ZDi3aP+fG/LchyBzUM804VjddnwfSfsdeYkwt8NcbKRvo4rFkjhs456iLFn3k2ZUWvNe4i48WACDbza8fhq2+w==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
@@ -14583,13 +14614,6 @@ packages:
|
|||||||
brace-expansion: 2.0.1
|
brace-expansion: 2.0.1
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/minimatch@9.0.1:
|
|
||||||
resolution: {integrity: sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==}
|
|
||||||
engines: {node: '>=16 || 14 >=14.17'}
|
|
||||||
dependencies:
|
|
||||||
brace-expansion: 2.0.1
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/minimatch@9.0.3:
|
/minimatch@9.0.3:
|
||||||
resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}
|
resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==}
|
||||||
engines: {node: '>=16 || 14 >=14.17'}
|
engines: {node: '>=16 || 14 >=14.17'}
|
||||||
@@ -15230,6 +15254,16 @@ packages:
|
|||||||
validate-npm-package-name: 5.0.0
|
validate-npm-package-name: 5.0.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/npm-package-arg@11.0.1:
|
||||||
|
resolution: {integrity: sha512-M7s1BD4NxdAvBKUPqqRW957Xwcl/4Zvo8Aj+ANrzvIPzGJZElrH7Z//rSaec2ORcND6FHHLnZeY8qgTpXDMFQQ==}
|
||||||
|
engines: {node: ^16.14.0 || >=18.0.0}
|
||||||
|
dependencies:
|
||||||
|
hosted-git-info: 7.0.1
|
||||||
|
proc-log: 3.0.0
|
||||||
|
semver: 7.5.4
|
||||||
|
validate-npm-package-name: 5.0.0
|
||||||
|
dev: true
|
||||||
|
|
||||||
/npm-packlist@7.0.4:
|
/npm-packlist@7.0.4:
|
||||||
resolution: {integrity: sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q==}
|
resolution: {integrity: sha512-d6RGEuRrNS5/N84iglPivjaJPxhDbZmlbTwTDX2IbcRHG5bZCdtysYMhwiPvcF4GisXHGn7xsxv+GQ7T/02M5Q==}
|
||||||
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
|
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
|
||||||
@@ -15952,21 +15986,19 @@ packages:
|
|||||||
yaml: 1.10.2
|
yaml: 1.10.2
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/postcss-loader@7.3.2(postcss@8.4.24)(typescript@5.1.6)(webpack@5.86.0):
|
/postcss-loader@7.3.2(postcss@8.4.24)(webpack@5.86.0):
|
||||||
resolution: {integrity: sha512-c7qDlXErX6n0VT+LUsW+nwefVtTu3ORtVvK8EXuUIDcxo+b/euYqpuHlJAvePb0Af5e8uMjR/13e0lTuYifaig==}
|
resolution: {integrity: sha512-c7qDlXErX6n0VT+LUsW+nwefVtTu3ORtVvK8EXuUIDcxo+b/euYqpuHlJAvePb0Af5e8uMjR/13e0lTuYifaig==}
|
||||||
engines: {node: '>= 14.15.0'}
|
engines: {node: '>= 14.15.0'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
postcss: ^7.0.0 || ^8.0.1
|
postcss: ^7.0.0 || ^8.0.1
|
||||||
webpack: ^5.0.0
|
webpack: ^5.0.0
|
||||||
dependencies:
|
dependencies:
|
||||||
cosmiconfig: 8.3.6(typescript@5.1.6)
|
cosmiconfig: 8.1.3
|
||||||
jiti: 1.20.0
|
jiti: 1.20.0
|
||||||
klona: 2.0.6
|
klona: 2.0.6
|
||||||
postcss: 8.4.24
|
postcss: 8.4.24
|
||||||
semver: 7.5.4
|
semver: 7.5.4
|
||||||
webpack: 5.86.0(esbuild@0.17.19)
|
webpack: 5.86.0(esbuild@0.17.19)
|
||||||
transitivePeerDependencies:
|
|
||||||
- typescript
|
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/postcss-media-query-parser@0.2.3:
|
/postcss-media-query-parser@0.2.3:
|
||||||
@@ -16124,8 +16156,8 @@ packages:
|
|||||||
hasBin: true
|
hasBin: true
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/prettier@3.1.0:
|
/prettier@3.1.1:
|
||||||
resolution: {integrity: sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==}
|
resolution: {integrity: sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
@@ -16269,6 +16301,10 @@ packages:
|
|||||||
resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==}
|
resolution: {integrity: sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==}
|
||||||
engines: {node: '>=6'}
|
engines: {node: '>=6'}
|
||||||
|
|
||||||
|
/pure-rand@6.0.4:
|
||||||
|
resolution: {integrity: sha512-LA0Y9kxMYv47GIPJy6MI84fqTd2HmYZI83W/kM/SkKfDlajnZYfmXFTxkbY+xSBPkLJxltMa9hIkmdc29eguMA==}
|
||||||
|
dev: true
|
||||||
|
|
||||||
/q@1.5.1:
|
/q@1.5.1:
|
||||||
resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==}
|
resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==}
|
||||||
engines: {node: '>=0.6.0', teleport: '>=0.2.0'}
|
engines: {node: '>=0.6.0', teleport: '>=0.2.0'}
|
||||||
@@ -17026,14 +17062,6 @@ packages:
|
|||||||
hasBin: true
|
hasBin: true
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/semver@7.5.1:
|
|
||||||
resolution: {integrity: sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==}
|
|
||||||
engines: {node: '>=10'}
|
|
||||||
hasBin: true
|
|
||||||
dependencies:
|
|
||||||
lru-cache: 6.0.0
|
|
||||||
dev: true
|
|
||||||
|
|
||||||
/semver@7.5.3:
|
/semver@7.5.3:
|
||||||
resolution: {integrity: sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==}
|
resolution: {integrity: sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
@@ -18176,22 +18204,29 @@ packages:
|
|||||||
engines: {node: '>=0.10'}
|
engines: {node: '>=0.10'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/syncpack@10.5.1:
|
/syncpack@12.3.0(typescript@5.1.6):
|
||||||
resolution: {integrity: sha512-YGKX0x7I4LxP62gJZnjMiv9eROQnbymeVU1heLdOhuiGNDuIcT/fk1M2kh1VYSBuuFIaGTP30LNEbPx4zy5MQg==}
|
resolution: {integrity: sha512-Gz2uGn96OmGfVVlKztvFac1EJYjP+WptQ2ohA6Uf48C6qLkhSayhkdujKQ6q7bGOTy8HSGI0iDfwfCJu6wvRig==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=16'}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
dependencies:
|
dependencies:
|
||||||
|
'@effect/schema': 0.56.1(effect@2.0.0-next.62)(fast-check@3.15.0)
|
||||||
chalk: 4.1.2
|
chalk: 4.1.2
|
||||||
commander: 10.0.1
|
commander: 11.1.0
|
||||||
cosmiconfig: 8.1.3
|
cosmiconfig: 9.0.0(typescript@5.1.6)
|
||||||
enquirer: 2.3.6
|
effect: 2.0.0-next.62
|
||||||
fs-extra: 11.1.1
|
enquirer: 2.4.1
|
||||||
glob: 10.2.6
|
fast-check: 3.15.0
|
||||||
minimatch: 9.0.1
|
globby: 11.1.0
|
||||||
|
minimatch: 9.0.3
|
||||||
|
npm-package-arg: 11.0.1
|
||||||
|
ora: 5.4.1
|
||||||
|
prompts: 2.4.2
|
||||||
read-yaml-file: 2.1.0
|
read-yaml-file: 2.1.0
|
||||||
semver: 7.5.1
|
semver: 7.5.4
|
||||||
tightrope: 0.1.0
|
tightrope: 0.1.0
|
||||||
ts-toolbelt: 9.6.0
|
ts-toolbelt: 9.6.0
|
||||||
|
transitivePeerDependencies:
|
||||||
|
- typescript
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/table@6.8.1:
|
/table@6.8.1:
|
||||||
|
|||||||
Reference in New Issue
Block a user