@sum.cumo/nuxt-custom-route-folder
Advanced tools
Comparing version 2.1.2 to 2.1.3
# Changelog @sum.cumo/nuxt-custom-route-folder | ||
## Version 2.1.3 | ||
### 🐞 Bug Fixes | ||
→ **apply linter changes** | ||
> which is basically a style type of commit, but I want | ||
> to make sure to release this, so fix it is. | ||
> | ||
> | ||
## Version 2.1.2 | ||
@@ -4,0 +15,0 @@ |
{ | ||
"name": "@sum.cumo/nuxt-custom-route-folder", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -83,3 +83,6 @@ import path from 'path' | ||
const readyFilter = rxFilter(({ event }) => event === 'ready') | ||
const ready$ = watch$.pipe(readyFilter, delay(1)) | ||
const ready$ = watch$.pipe( | ||
readyFilter, | ||
delay(1) | ||
) | ||
let rdy = false | ||
@@ -122,9 +125,14 @@ const ready$$ = Observable.create((obs) => { | ||
const promise = new Promise((resolve, reject) => { | ||
const sub = fs$.pipe(readyFilter, delay(2)).subscribe({ | ||
complete() { | ||
resolve() | ||
sub.unsubscribe() | ||
}, | ||
error: reject, | ||
}) | ||
const sub = fs$ | ||
.pipe( | ||
readyFilter, | ||
delay(2) | ||
) | ||
.subscribe({ | ||
complete() { | ||
resolve() | ||
sub.unsubscribe() | ||
}, | ||
error: reject, | ||
}) | ||
}) | ||
@@ -131,0 +139,0 @@ |
@@ -65,3 +65,3 @@ import { expectWatch, reset } from 'chokidar' | ||
expect(routes.length).toBe(1) | ||
expect(routes).toHaveLength(1) | ||
expect(routes[0]).toEqual({ | ||
@@ -106,3 +106,3 @@ path: '/foo', | ||
expect(routes.length).toBe(1) | ||
expect(routes).toHaveLength(1) | ||
@@ -115,3 +115,3 @@ emitter.emit('unlink', `${srcDir}/foo.js`) | ||
expect(builder.generateRoutesAndFiles).toHaveBeenCalledTimes(2) | ||
expect(routes.length).toBe(0) | ||
expect(routes).toHaveLength(0) | ||
}) | ||
@@ -140,4 +140,4 @@ | ||
expect( | ||
fakeNuxt.hook.mock.calls.filter(([name]) => name === 'build:done').length | ||
).toBe(1) | ||
fakeNuxt.hook.mock.calls.filter(([name]) => name === 'build:done') | ||
).toHaveLength(1) | ||
}) | ||
@@ -182,3 +182,3 @@ | ||
expect(routes.length).toBe(1) | ||
expect(routes).toHaveLength(1) | ||
expect(routes[0]).toEqual({ | ||
@@ -259,3 +259,3 @@ path: '/foo', | ||
expect(routes.length).toBe(1) | ||
expect(routes).toHaveLength(1) | ||
expect(routes[0]).toEqual({ | ||
@@ -305,3 +305,3 @@ path: '/', | ||
expect(routes.length).toBe(1) | ||
expect(routes).toHaveLength(1) | ||
expect(routes[0]).toEqual({ | ||
@@ -308,0 +308,0 @@ path: '/foo', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33884
866