Skip to content

Commit

Permalink
test: run npm run biome:format
Browse files Browse the repository at this point in the history
Signed-off-by: Tierney Cyren <[email protected]>
  • Loading branch information
bnb committed Aug 28, 2024
1 parent 447ba71 commit d37d71a
Show file tree
Hide file tree
Showing 36 changed files with 17,276 additions and 17,141 deletions.
2 changes: 1 addition & 1 deletion core/biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"recommended": true
}
}
}
}
18 changes: 9 additions & 9 deletions core/examples/default.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const core = require('@retrogen/core')
const core = require('@retrogen/core');

async function generate () {
const dates = {
start: '2022-01-01',
end: '2022-01-31'
}
async function generate() {
const dates = {
start: '2022-01-01',
end: '2022-01-31',
};

const data = await core('nodejs', dates)
const data = await core('nodejs', dates);

console.log(JSON.stringify(data, null, 2))
console.log(JSON.stringify(data, null, 2));
}

generate()
generate();
26 changes: 13 additions & 13 deletions core/examples/defaultWithOptions.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
const core = require('@retrogen/core')
const core = require('@retrogen/core');

async function generate () {
const dates = {
start: '2022-01-01',
end: '2022-01-31'
}
async function generate() {
const dates = {
start: '2022-01-01',
end: '2022-01-31',
};

const options = {
sort: 'interactions', // default is `updated`, but assume we want to see what's most interacted with
per_page: 50 // default is 100. Not sure why you'd want to limit this outside of *knowing* you have a small size and speeding up the query.
}
const options = {
sort: 'interactions', // default is `updated`, but assume we want to see what's most interacted with
per_page: 50, // default is 100. Not sure why you'd want to limit this outside of *knowing* you have a small size and speeding up the query.
};

const data = await core('nodejs', dates, options)
const data = await core('nodejs', dates, options);

console.log(JSON.stringify(data, null, 2))
console.log(JSON.stringify(data, null, 2));
}

generate()
generate();
Loading

0 comments on commit d37d71a

Please sign in to comment.