This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file Custom Matchers - each | |
* @module tests/config/matchers/each | |
*/ | |
/** | |
* Wraps each item in an array in a {@link chai.Assertion}. | |
* | |
* [1]: https://www.chaijs.com/api | |
* [2]: https://www.chaijs.com/api/plugins |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { OrUndefined } from '@flex-development/tutils' | |
import { Injectable, NestMiddleware } from '@nestjs/common' | |
import { ENV } from '@sneusers/config/configuration' | |
import csurf, { CookieOptions } from 'csurf' | |
import { NextFunction, Request, Response } from 'express' | |
/** | |
* @file Middleware - CsurfMiddleware | |
* @module middleware/CsurfMiddleware | |
* @see https://github.com/expressjs/csurf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file Hook Entry Point - usePixiTicker | |
* @module ui/hooks/usePixiTicker | |
*/ | |
export { default as usePixiTicker } from './use-pixi-ticker' | |
export * from './use-pixi-ticker.types' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# REFERENCES: | |
# | |
# - https://pumpingco.de/blog/brewfile | |
# - https://medium.com/@satorusasozaki/automate-mac-os-x-configuration-by-using-brewfile-58a78ce5cc53 | |
# Specify --cask arguments | |
cask_args appdir: '/Applications' fontdir: '~/Library/Fonts' | |
# Add additional repositories not in the official homebrew formulae | |
tap 'dopplerhq/cli' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { ObjectPlain } from '@flex-development/tutils' | |
import isNIL from '@flex-development/tutils/guards/is-nil.guard' | |
import { shallowEqual } from 'shallow-equal-object' | |
/** | |
* @file Models - ValueObject | |
* @module models/ValueObject | |
*/ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Environment Variables - NODE_OPTIONS - Use ESM syntax | |
if [ -f "$PWD/node_modules/ts-node/esm.mjs" ]; then | |
# Ignore warnings | |
NODE_NO_WARNINGS=1 | |
# Import JSON modules | |
JSON_MODULES='--experimental-json-modules' | |
# Use custom ESM loader | |
LOADER="--loader $PWD/tools/loaders/esm.mjs" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { ValidationArguments } from 'class-validator' | |
import merge from 'lodash.merge' | |
import TestSubject from '../is-strong-password.constraint' | |
/** | |
* @file Unit Tests - IsStrongPasswordConstraint | |
* @module constraints/tests/IsStrongPasswordConstraint | |
*/ | |
describe('unit:constraints/IsStrongPasswordConstraint', () => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Module } from '@nestjs/common' | |
import type { ConfigModuleOptions } from '@nestjs/config' | |
import { ConfigModule } from '@nestjs/config' | |
import { APP_FILTER, APP_INTERCEPTOR, APP_PIPE } from '@nestjs/core' | |
import configuration from './config/configuration' | |
import { AllExceptionsFilter } from './lib/filters' | |
import { PageviewInterceptor } from './lib/interceptors' | |
import { ParseQueryPipe } from './lib/pipes' | |
import { UsersModule } from './subdomains' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { UserConfig } from '@commitlint/types' | |
import workspaces from './tools/helpers/workspaces' | |
/** | |
* @file Commitlint Configuration | |
* @see https://commitlint.js.org/#/guides-local-setup | |
* @see https://commitlint.js.org/#/reference-configuration | |
*/ | |
const config: UserConfig = { |