Skip to content

Commit

Permalink
chore: updates gha pnpm version
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Jan 5, 2025
1 parent a110194 commit da98fe5
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
fetch-depth: 2
- uses: pnpm/action-setup@v2
with:
version: 8.4.0
version: 9.15.2
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8.4.0
version: 9.15.2
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
Expand Down
54 changes: 26 additions & 28 deletions packages/casl-ability/src/matchers/conditions.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
import {
$all,
$elemMatch,
$eq,
eq,
$ne,
ne,
$lt,
lt,
$lte,
lte,
$exists,
$gt,
gt,
$gte,
gte,
$in,
within,
$lt,
$lte,
$ne,
$nin,
nin,
$all,
all,
$size,
size,
$regex,
$options,
regex,
$elemMatch,
elemMatch,
$exists,
exists,
$regex,
$size,
all,
and,
createFactory,
BuildMongoQuery,
createFactory,
DefaultOperators,
ParsingInstruction,
elemMatch,
eq,
exists,
gt,
gte,
lt,
lte,
ne,
nin,
regex,
size,
within
} from '@ucast/mongo2js';
import { ConditionsMatcher, AnyObject } from '../types';
import { Container, GenericFactory } from '../hkt';
import { AnyObject, ConditionsMatcher } from '../types';

const defaultInstructions = {
$eq,
Expand Down Expand Up @@ -81,14 +80,13 @@ export type MongoQuery<T = AnyObject> = BuildMongoQuery<MergeUnion<T>, {
type MongoQueryMatcherFactory =
(...args: Partial<Parameters<typeof createFactory>>) => ConditionsMatcher<MongoQuery>;
export const buildMongoQueryMatcher = ((instructions, interpreters, options) => createFactory(
{ ...defaultInstructions, ...instructions } as Record<string, ParsingInstruction<any, any>>,
{ ...defaultInstructions, ...instructions },
{ ...defaultInterpreters, ...interpreters },
options
)) as MongoQueryMatcherFactory;

export const mongoQueryMatcher = createFactory(defaultInstructions, defaultInterpreters);
export type {
MongoQueryFieldOperators,
MongoQueryTopLevelOperators,
MongoQueryOperators,
MongoQueryFieldOperators, MongoQueryOperators, MongoQueryTopLevelOperators
} from '@ucast/mongo2js';

0 comments on commit da98fe5

Please sign in to comment.