Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci-report-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ on:
workflow_dispatch:

jobs:
check-token:
runs-on: ubuntu-latest
outputs:
has-token: ${{ steps.check.outputs.has-token }}
steps:
- id: check
run: echo "has-token=${{ secrets.COVERALLS_REPO_TOKEN != '' }}" >> "$GITHUB_OUTPUT"

test-report-coverage:
needs: check-token
if: github.event.pull_request.draft != true && needs.check-token.outputs.has-token == 'true'
runs-on: ubuntu-latest

steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Zajno's Toolbox
[![Coverage Status](https://coveralls.io/repos/github/Zajno/common-utils/badge.svg)](https://coveralls.io/github/Zajno/common-utils)
[![CI](https://github.com/Zajno/common-utils/actions/workflows/ci-report-coverage.yml/badge.svg)](https://github.com/Zajno/common-utils/actions/workflows/ci-report-coverage.yml)
[![Coverage Status](https://coveralls.io/repos/github/idudinov/common-utils/badge.svg)](https://coveralls.io/github/idudinov/common-utils)
[![CI](https://github.com/idudinov/common-utils/actions/workflows/ci-report-coverage.yml/badge.svg)](https://github.com/idudinov/common-utils/actions/workflows/ci-report-coverage.yml)

A monorepo for Zajno's internal tools and utilities.

Expand Down
2 changes: 1 addition & 1 deletion packages/common-firebase/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Zajno's Toolbox for Firebase projects

Moved from [Zajno/common-firebase](https://github.com/Zajno/common-firebase).
Moved from [Zajno/common-firebase](https://github.com/Zajno/common-firebase). Now maintained at [idudinov/common-utils](https://github.com/idudinov/common-utils).

Extension for [`@zajno/common`](../common), which adds more tools for development projects based on [Firebase](https://firebase.google.com/).

Expand Down
6 changes: 3 additions & 3 deletions packages/common-firebase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/Zajno/common-utils.git"
"url": "git+https://github.com/idudinov/common-utils.git"
},
"author": "Zajno <hello@zajno.com> (https://zajno.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/Zajno/common-utils/issues"
"url": "https://github.com/idudinov/common-utils/issues"
},
"homepage": "https://github.com/Zajno/common-utils/tree/main/packages/common-firebase#readme",
"homepage": "https://github.com/idudinov/common-utils/tree/main/packages/common-firebase#readme",
"scripts": {
"clean": "scripty",
"dev": "scripty",
Expand Down
2 changes: 1 addition & 1 deletion packages/common-firebase/src/server/functions/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function wrapLoaderFunction<TFn extends Fn<TArgs>, TArgs extends any[]>(w
const lazyPromise = new LazyPromise(workerLoader);
return (async (...args: TArgs) => {
const handler = await lazyPromise.promise;
return handler(...args);
return handler?.(...args);
}) as TFn;
}

Expand Down
4 changes: 2 additions & 2 deletions packages/common-firebase/src/server/pubsub/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ export namespace PubSub {
}

const pubsub = await this._instanceLoader.promise;
const topic = pubsub.topic(name);
const topic = pubsub?.topic(name);

try {
await topic.publishMessage({ json: data });
await topic?.publishMessage({ json: data });
} catch (e) {
logger.value?.error('Failed to publish error ', e);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/common-mobx/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Zajno's Toolbox – MobX

Moved from [Zajno/common-mobx](https://github.com/Zajno/common-mobx).
Moved from [Zajno/common-mobx](https://github.com/Zajno/common-mobx). Now maintained at [idudinov/common-utils](https://github.com/idudinov/common-utils).

This library is an extension for [`@zajno/common`](../common), which adds more tools but based on [MobX](https://mobx.js.org/) library.

Expand Down
6 changes: 3 additions & 3 deletions packages/common-mobx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/Zajno/common-utils.git"
"url": "git+https://github.com/idudinov/common-utils.git"
},
"author": "Zajno <hello@zajno.com> (https://zajno.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/Zajno/common-utils/issues"
"url": "https://github.com/idudinov/common-utils/issues"
},
"homepage": "https://github.com/Zajno/common-utils/tree/main/packages/common-mobx#readme",
"homepage": "https://github.com/idudinov/common-utils/tree/main/packages/common-mobx#readme",
"scripts": {
"clean": "scripty",
"dev": "scripty",
Expand Down
2 changes: 1 addition & 1 deletion packages/common-web/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Zajno's Toolbox – Web

Moved from [Zajno/common-web](https://github.com/Zajno/common-web).
Moved from [Zajno/common-web](https://github.com/Zajno/common-web). Now maintained at [idudinov/common-utils](https://github.com/idudinov/common-utils).

This library is an extension for [`@zajno/common`](../common), which adds more tools for Web development (mostly based on browser features).

Expand Down
6 changes: 3 additions & 3 deletions packages/common-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/Zajno/common-utils.git"
"url": "git+https://github.com/idudinov/common-utils.git"
},
"author": "Zajno <hello@zajno.com> (https://zajno.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/Zajno/common-utils/issues"
"url": "https://github.com/idudinov/common-utils/issues"
},
"homepage": "https://github.com/Zajno/common-utils/tree/main/packages/common-web#readme",
"homepage": "https://github.com/idudinov/common-utils/tree/main/packages/common-web#readme",
"scripts": {
"clean": "scripty",
"dev": "scripty",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Zajno's Toolbox

[![Coverage Status](https://coveralls.io/repos/github/Zajno/common-utils/badge.svg?branch=main)](https://coveralls.io/github/Zajno/common-utils?branch=main)
[![Coverage Status](https://coveralls.io/repos/github/idudinov/common-utils/badge.svg?branch=main)](https://coveralls.io/github/idudinov/common-utils?branch=main)

This is a library with a useful utils/helpers to share across our projects.

Expand Down
6 changes: 3 additions & 3 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/Zajno/common-utils.git"
"url": "git+https://github.com/idudinov/common-utils.git"
},
"author": "Zajno <hello@zajno.com> (https://zajno.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/Zajno/common-utils/issues"
"url": "https://github.com/idudinov/common-utils/issues"
},
"homepage": "https://github.com/Zajno/common-utils/tree/main/packages/common#readme",
"homepage": "https://github.com/idudinov/common-utils/tree/main/packages/common#readme",
"scripts": {
"clean": "scripty",
"dev": "scripty",
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"private": false,
"repository": {
"type": "git",
"url": "git+https://github.com/Zajno/common-utils.git"
"url": "git+https://github.com/idudinov/common-utils.git"
},
"author": "Zajno <hello@zajno.com> (https://zajno.com)",
"license": "MIT",
"bugs": {
"url": "https://github.com/Zajno/common-utils/issues"
"url": "https://github.com/idudinov/common-utils/issues"
},
"homepage": "https://github.com/Zajno/common-utils/tree/main/packages/eslint-config#readme",
"homepage": "https://github.com/idudinov/common-utils/tree/main/packages/eslint-config#readme",
"keywords": [
"zajno",
"eslint",
Expand Down
Loading