Skip to content

Commit c15ef78

Browse files
authored
Merge branch 'main' into production
2 parents 4ef2fc6 + 5c160f4 commit c15ef78

33 files changed

+8616
-5550
lines changed

.github/SPONSORS.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: mesqueeb
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Test
2+
on:
3+
push:
4+
branches: main
5+
paths:
6+
- src/**
7+
- test/**
8+
- '*.js'
9+
- '*.ts'
10+
- '*.json'
11+
- .github/workflows/test.yml
12+
pull_request:
13+
branches: main
14+
paths:
15+
- src/**
16+
- test/**
17+
- '*.js'
18+
- '*.ts'
19+
- '*.json'
20+
- .github/workflows/test.yml
21+
concurrency:
22+
group: test-${{ github.ref }}
23+
cancel-in-progress: true
24+
jobs:
25+
test:
26+
strategy:
27+
matrix:
28+
node-version: ['18', '20']
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ matrix.node-version }}
35+
cache: npm
36+
- run: npm ci
37+
- run: npm test

.prettierrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import prettier from "@cycraft/eslint/prettier"
2+
3+
export default prettier

dist/cjs/index.cjs

Lines changed: 0 additions & 83 deletions
This file was deleted.

dist/extensions.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export declare function concatArrays<T>(originVal: unknown, newVal: T): T;

dist/extensions.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { isArray } from 'is-what';
2+
export function concatArrays(originVal, newVal) {
3+
if (isArray(originVal) && isArray(newVal)) {
4+
// concat logic
5+
return originVal.concat(newVal);
6+
}
7+
return newVal; // always return newVal as fallback!!
8+
}

0 commit comments

Comments
 (0)