Compare commits

...

3 Commits

Author SHA1 Message Date
40011a62da Added actors module to repo. 2024-10-22 03:09:17 +02:00
43db15e017 1.2.2 2024-10-22 03:07:25 +02:00
697cd5d5c2 Changed back to ESM. 2024-10-22 03:07:23 +02:00
3 changed files with 4 additions and 8 deletions

View File

@@ -134,7 +134,7 @@ function mergeMainProfile(profile, mainProfile) {
return mergedProfile; return mergedProfile;
} }
async function interpolateProfiles(actorIdsOrNames, context) { export async function interpolateProfiles(actorIdsOrNames, context) {
const profiles = await fetchProfiles(actorIdsOrNames, context); const profiles = await fetchProfiles(actorIdsOrNames, context);
const profilesByActorId = profiles.reduce((acc, profile) => ({ const profilesByActorId = profiles.reduce((acc, profile) => ({
@@ -295,7 +295,3 @@ async function interpolateProfiles(actorIdsOrNames, context) {
await context.knex.schema.refreshMaterializedView('actors_meta'); await context.knex.schema.refreshMaterializedView('actors_meta');
} }
module.exports = {
interpolateProfiles,
};

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "traxxx-utils", "name": "traxxx-utils",
"version": "1.2.1", "version": "1.2.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "traxxx-utils", "name": "traxxx-utils",
"version": "1.2.1", "version": "1.2.2",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@babel/cli": "^7.25.7", "@babel/cli": "^7.25.7",

View File

@@ -1,6 +1,6 @@
{ {
"name": "traxxx-common", "name": "traxxx-common",
"version": "1.2.1", "version": "1.2.2",
"description": "Common utilities for traxxx core and web.", "description": "Common utilities for traxxx core and web.",
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {