profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/climba03003/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

climba03003/bree 0

:traffic_light: The best job scheduler for Node.js and JavaScript with cron, dates, ms, later, and human-friendly support. Works in Node v10+ and browsers, uses workers to spawn sandboxed processes, and supports async/await, retries, throttling, concurrency, and graceful shutdown. Simple, fast, and lightweight. Made for @ForwardEmail and @ladjs.

climba03003/DefinitelyTyped 0

The repository for high quality TypeScript type definitions.

climba03003/eventemitter 0

NodeJS EventEmitter which ensure all the event listener run sequentially. The API is follow the NodeJS API Documents.

climba03003/fastify 0

Fast and low overhead web framework, for Node.js

push eventfastify/point-of-view

Arturo Riveron Borovisina

commit sha 0e7859d3d9aff7e4a5cb0291cfe394418a8dc016

Fix include logic using EJS templates (#262) * fix(readme): fix include logic using ejs templates * fix(readme): relative path to the template file Co-authored-by: Arturo Riveron Borodovisina <aborodovisina@paypal.com>

view details

push time in 5 hours

PR merged fastify/point-of-view

Fix include logic using EJS templates

This PR includes minor edits on the Readme file, related to EJS templates. It was a little confusing how to include a partial EJS file in an EJS template.

The example code was fixed. Also, a link with a file example on how to use the <%include%> in an EJS template was added.

+2 -2

0 comment

1 changed file

borodovisin

pr closed time in 5 hours

PullRequestReviewEvent

issue commentfastify/fastify-cookie

Exported types doesn't includes parseCookie method for fastify instance

Would you like to send an PR to address the issue? Remember to add an unit test under test folder.

devlegacy

comment created time in 5 hours

Pull request review commentfastify/point-of-view

Fix include logic using EJS templates

 const resolve = require('path').resolve ``` and in ejs template files (for example templates/index.ejs) use something like: ```html-<% include header.ejs %>+<%- include('header.ejs') %> ```-with a path relative to the current page, or an absolute path.+with a path relative to the current page, or an absolute path. Please check this example [here](https://raw.githubusercontent.com/fastify/point-of-view/c7ff7775cbc8dcf1a7194a517efbf243a74bd0be/templates/layout-with-includes.ejs)

I don't think we should use the raw content with fixed version.

with a path relative to the current page, or an absolute path. Please check this example [here](./templates/layout-with-includes.ejs)
borodovisin

comment created time in 5 hours

PullRequestReviewEvent
PullRequestReviewEvent

issue commentfastify/fastify

middiePlugin error

This problem is resolved. nestjs require a fixed version of fastify. Please follow the documentation of nestjs for the other setup.

chenyulun

comment created time in 5 hours

issue closedfastify/fastify

middiePlugin error

Prerequisites

  • [X] I have written a descriptive issue title
  • [X] I have searched existing issues to ensure the bug has not already been reported

Fastify version

8.1.1

Plugin version

middie

Node.js version

16.x

Operating system

Linux

Operating system version (i.e. 20.04, 11.3, 10)

3.10.0-957.el7.x86_64 #1 SMP Thu Oct 4 20:48:51 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Description

[root@xxxxxxxx pui-polyfill]# yarn start:prod
yarn run v1.22.17
$ cross-env NODE_ENV=production node dist/main
[Nest] 14887  - 10/22/2021, 7:30:09 PM     LOG [NestFactory] Starting Nest application...
[Nest] 14887  - 10/22/2021, 7:30:09 PM     LOG [InstanceLoader] AppModule dependencies initialized +55ms
/root/gitlab/pui-polyfill/node_modules/.pnpm/middie@5.3.0/node_modules/middie/index.js:21
      path = prefix + (path === '/' && prefix.length > 0 ? '' : path)
                                              ^

TypeError: Cannot read properties of undefined (reading 'length')
    at Object.use (/root/gitlab/pui-polyfill/node_modules/.pnpm/middie@5.3.0/node_modules/middie/index.js:21:47)
    at /root/gitlab/pui-polyfill/node_modules/.pnpm/@nestjs+platform-fastify@8.1.1_9569caea4829e1e6a54e03a46e955ce7/node_modules/@nestjs/platform-fastify/adapters/fastify-adapter.js:224:27
    at MiddlewareModule.registerHandler (/root/gitlab/pui-polyfill/node_modules/.pnpm/@nestjs+core@8.1.1_fd2a30749d40d79b96b1254a3e96f533/node_modules/@nestjs/core/middleware/middleware-module.js:153:9)
error Command failed with exit code 1.

Steps to Reproduce

➜  pui-polyfill git:(feat) yarn build
yarn run v1.22.15
$ rimraf dist
$ nest build
✨  Done in 5.80s.
➜  pui-polyfill git:(feat) yarn start:prod
yarn run v1.22.15
$ cross-env NODE_ENV=production node dist/main
[Nest] 29024  - 2021/10/22 下午7:47:25     LOG [NestFactory] Starting Nest application...
[Nest] 29024  - 2021/10/22 下午7:47:25     LOG [InstanceLoader] AppModule dependencies initialized +52ms
/Users/chenyulun390/gitlab/pui-polyfill/node_modules/.pnpm/registry.npmmirror.com+middie@5.3.0/node_modules/middie/index.js:21
      path = prefix + (path === '/' && prefix.length > 0 ? '' : path)
                                              ^

TypeError: Cannot read property 'length' of undefined
    at Object.use (/Users/chenyulun390/gitlab/pui-polyfill/node_modules/.pnpm/registry.npmmirror.com+middie@5.3.0/node_modules/middie/index.js:21:47)
    at /Users/chenyulun390/gitlab/pui-polyfill/node_modules/.pnpm/registry.npmmirror.com+@nestjs+platform-fastify@8.1.1_9569caea4829e1e6a54e03a46e955ce7/node_modules/@nestjs/platform-fastify/adapters/fastify-adapter.js:224:27
    at MiddlewareModule.registerHandler (/Users/chenyulun390/gitlab/pui-polyfill/node_modules/.pnpm/registry.npmmirror.com+@nestjs+core@8.1.1_fd2a30749d40d79b96b1254a3e96f533/node_modules/@nestjs/core/middleware/middleware-module.js:153:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
➜  pui-polyfill git:(feat) 

Expected Behavior

It worked two days ago, but not today Did you change some code to cause it?

closed time in 5 hours

chenyulun

issue commentfastify/fastify

middiePlugin error

Please provide a minimal reproducible code. Otherwise, we can not provide any help.

chenyulun

comment created time in 12 hours

Pull request review commentfastify/fastify-swagger

Allow openapi version config

 function prepareOpenapiObject (opts) {     paths: {}   } +  if (opts.openapi) openapiObject.openapi = opts.openapi

As the upper one already provide a default value. We do not need to set in here. Set it inside the object above.

fmoro

comment created time in 13 hours

Pull request review commentfastify/fastify-swagger

Allow openapi version config

 const { rawRequired } = require('../../symbols')  function prepareDefaultOptions (opts) {   const openapi = opts.openapi+  const openapiVersion = openapi.openapi || null

Set the default value here.

  const openapiVersion = openapi.openapi || '3.0.3'
fmoro

comment created time in 13 hours

PullRequestReviewEvent
PullRequestReviewEvent

Pull request review commentvueuse/vueuse

feat(useFetch): timeout

 export function useFetch<T>(url: MaybeRef<string>, ...args: any[]): UseFetchRetu         })         .finally(() => {           loading(false)+          if (timer) timer.stop()

Updated

climba03003

comment created time in 18 hours

PullRequestReviewEvent

Pull request review commentvueuse/vueuse

feat(useFetch): timeout

 export function useFetch<T>(url: MaybeRef<string>, ...args: any[]): UseFetchRetu      let responseData: any = null +    if (timer) timer.start()

Updated

climba03003

comment created time in 18 hours

PullRequestReviewEvent

push eventclimba03003/vueuse

KaKa

commit sha 46bf460e8768370929b3e016628546874c39b570

chore: fix lint

view details

push time in 18 hours

PR opened vueuse/vueuse

feat(useFetch): timeout

Resolve #867

The timeout feature use useTimeoutFn internally and call abort when the timeout reached.

+54 -6

0 comment

3 changed files

pr created time in 20 hours

create barnchclimba03003/vueuse

branch : use-fetch-timeout

created branch time in 20 hours

fork climba03003/vueuse

Collection of essential Vue Composition Utilities for Vue 2 and 3

https://vueuse.org

fork in 20 hours

push eventclimba03003/vueuse

webfansplz

commit sha 094056a6ad53762c1e1bf7818340f038308496d4

docs(pausableFilter): typos (#846) Co-authored-by: webfansplz <>

view details

Joakim Riedel

commit sha c13b12e4542ce81fef779e27ee1437471351674b

feat(throttledWatch): add `leading` option (#843)

view details

Kid

commit sha 5cfd4860b10230a5ab9042a617f4f71d780c0cb9

docs: remove a broken link (#836)

view details

likeswinds

commit sha e96775ff4b2574e9d1b652d7996d67901c70676c

fix(templateRef): improve types (#831)

view details

Glen

commit sha b9e80032977dfe48ad4e7a673dfefcf0194c9ced

feat(isDefined): new function (#812) Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>

view details

Joseph Fitz Hughes

commit sha 091f7d0e09d8b406f47742476713c2717eccfb71

fix(useScroll): types for ref include null and undefined (#828)

view details

Roman Harmyder

commit sha 3e76f6a75f505ee9048ccbb069110dab015790f9

feat(useConfirmDialog): new function (#804) Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>

view details

云游君

commit sha 4dd83e3da50d2561be5f9df564bea6e62e6e544e

feat(useSpeechSynthesis): new function (#837) * feat(useSpeechSynthesis): new function * chore: use longer text for test

view details

Abderrahim SOUBAI-ELIDRISI

commit sha 305c2839ece7f292758f881782e442f201f4fd5f

feat(core): add useDisplayMedia (#835)

view details

Darryl Noakes

commit sha 9eb4e6847e143b4d0fcc41db9cdbca8c34eb7c05

feat(useFuse): new function (#821) * feat(useFuse): new function (#806) Reactive wrapper for Fuse.js. Issues: #806 * feat(useFuse): switch styling to use Windi CSS and adjust styles Issues: #806, #821 * refactor(useFuse): export each export individually Issues: #806, #821 * feat(useFuse): use `tryOnScopeDispose` to cleanup automatically Issues: #806, #821 * feat(useFuse): export return type of `useFuse` Issues: #806, #821 * feat(useFuse): change result type to be `Fuse.FuseResult` Allows the other properties of the Fuse results to be used (i.e `matches` and `score`) and makes it consistent with vanilla Fuse. Issues: #806, #821 * fix(useFuse): fix un-updated property access in the demo The demo was still using `result.index` instead of `result.refIndex`. * feat(useFuse): merge the `fuseOptions` parameter into the `options` parameter Issues: #806, #821 * chore: cleanup * chore: improve dark mode Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>

view details

Anthony Fu

commit sha 9e82969b47efadb7517ce991315f64c162323dc0

chore: update

view details

Joe Maylor

commit sha 520af87db91dd5d3729443560bc966f300e6110c

feat(useElementHover): new function (#830) * initial useElementHover implementation * chore: update Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>

view details

KaKa

commit sha 905ffa11a6cad61b60714a8897d1a22ca1daf22c

feat(useFetch): add onFetchError in UseFetchOptions (#841) * feat: add onFetchError in UseFetchOptions * docs: add onFetchError usage

view details

Bobakanoosh

commit sha 15ebc6e7db1d0147ebd5b0c48dabea66bcd39d6a

feat(useScroll): add offsets as an option (#834) * Add offsets as an option to useScroll * Remove changes to demo * re-add missing extra line Co-authored-by: Bobakanoosh <jack.bobakanoosh@gmail.com>

view details

Anthony Fu

commit sha 9b409b07b9b5ea717d9f7d538a8ccaf8f61d9adb

feat(refDefault): new function

view details

Anthony Fu

commit sha 223bfcefe84c47d4cc60610fddba96b603d6ccff

chore: release v6.6.0

view details

Roman Harmyder

commit sha bdea8ead41add944db9536d9cb811e49cdf88dda

feat(UseFocusTrap): component (#820) Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>

view details

Anthony Fu

commit sha d1153b7b2dd77bf32c494d20bddecfc93c55e343

chore: update deps

view details

Anthony Fu

commit sha aacdd5bb4e712498f48ff337a13bb24ffda4367f

chore: fix build

view details

Anthony Fu

commit sha 407bb2a43dd248098f17b9a627f17b1293169fd5

chore: fix fetch depth for CI

view details

push time in 20 hours

PR closed fastify/fastify

upgrade fast-json-stringify to 2.7.11

The new version 2.7.11 can now use recursion in json schema without problems.

Checklist

+1 -1

1 comment

1 changed file

kingyyy

pr closed time in 20 hours

pull request commentfastify/fastify

upgrade fast-json-stringify to 2.7.11

No need to update the dependency like this. It is not a fixed version. Please re-install your dependency for a new package version.

kingyyy

comment created time in 20 hours

issue closedfastify/fast-json-stringify

Recursion

I'm trying to serialize some recursive directory tree without success.

And I do not find any solution, can you please help me?

Code

const fastify = require('fastify')({ logger: { prettyPrint: { translateTime: true } } })

fastify.route({
  url: '/',
  method: 'GET',
  schema: {
    response: {
      200: {
        definitions: {
          directory: {
            type: 'object',
            properties: {
              name: { type: 'string' },
              subDirectories: {
                type: 'array',
                items: { $ref: '#/definitions/directory' },
                default: []
              }
            }
          }
        },
        type: 'array',
        items: { $ref: '#/definitions/directory' }
      }
    }
  },
  handler: async (request, reply) => {
    reply.send([
      { name: 'directory 1', subDirectories: [] },
      { name: 'directory 2',
        subDirectories: [
          { name: 'directory 2.1', subDirectories: [] },
          { name: 'directory 2.2', subDirectories: [] }
        ] }
    ])
  }
})

fastify.listen().catch(error => {
  fastify.log.error(error)
  process.exit(1)
})

Error

[2019-08-12 09:54:23.895 +0000] ERROR (59647 on xxx.local): Maximum call stack size exceeded
    RangeError: Maximum call stack size exceeded
        at String.replace (<anonymous>)
        at sanitizeKey (/Users/xxx/workspace/yyy/node_modules/fast-json-stringify/index.js:520:19)
        at Object.keys.forEach (/Users/xxx/workspace/yyy/node_modules/fast-json-stringify/index.js:544:21)
        at Array.forEach (<anonymous>)
        at buildCode (/Users/xxx/workspace/yyy/node_modules/fast-json-stringify/index.js:534:40)
        at buildCodeWithAllOfs (/Users/xxx/workspace/yyy/node_modules/fast-json-stringify/index.js:644:21)
        at buildInnerObject (/Users/xxx/workspace/yyy/node_modules/fast-json-stringify/index.js:662:10)
        at buildObject (/Users/xxx/workspace/yyy/node_modules/fast-json-stringify/index.js:753:9)
        at nested (/Users/xxx/workspace/yyy/node_modules/fast-json-stringify/index.js:912:19)
        at Object.keys.forEach (/Users/xxx/workspace/yyy/node_modules/fast-json-stringify/index.js:603:20)

closed time in a day

Shiva127

issue commentfastify/fast-json-stringify

Recursion

Does the merge of #363 mean this is resolved?

I think yes.

Shiva127

comment created time in a day

issue openedvueuse/vueuse

useFetch timeout

I think useFetch and createFetch should provide a timeout feature. The main reason is that the default timeout for fetch API is way too long (300s for Chrome and 90s for Firefox). If we use useFetch in a critical area, such as vue-route hooks, it will just hang the whole process. Although, we can create a timeout our-self. The development experience is not quite good.

I propose to add timeout property to useFetch and createFetch. I will draft a PR soon if anyone agree.

created time in a day

issue commentfastify/fastify

ajv override documentation seems outdated

Are you using ajv@6 or ajv@7. The current typings is strictly bind to ajv@6.

kibertoad

comment created time in 2 days

pull request commentfastify/fastify

fix(typescript): allow to pass all pino options

Could you please bump pino to the latest version as well? I think this is still pointing to a release candidate.

Updated

climba03003

comment created time in 3 days