Skip to content

Commit

Permalink
0.0.849
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrus committed Nov 10, 2024
1 parent cc5ee7c commit f0c5a97
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion XV/stow.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { set } from './set.js';
export async function stow(values, mapping) {
const ctx = {
USLs: []
};
for (const key in mapping) {
await set(mapping[key], values[key]);
await set(mapping[key], values[key], ctx);
}
window.postMessage([ctx.USLs]);
}
8 changes: 6 additions & 2 deletions XV/stow.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { USLMapping } from '../ts-refs/trans-render/XV/types'
import { SavingContext, USLMapping } from '../ts-refs/trans-render/XV/types'
import { set } from './set.js';

export async function stow(values: any, mapping: USLMapping){
const ctx: SavingContext = {
USLs: []
};
for(const key in mapping){
await set(mapping[key], values[key]);
await set(mapping[key], values[key], ctx);
}
window.postMessage([ctx.USLs]);
}

0 comments on commit f0c5a97

Please sign in to comment.