Skip to content

Commit 92ba73e

Browse files
author
pooya parsa
committed
feat: remove debug
1 parent 0b69bac commit 92ba73e

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

packages/icon/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
const { existsSync } = require('fs-extra')
22
const path = require('path')
33
const Jimp = require('jimp')
4-
const debug = require('debug')('nuxt:pwa')
54

65
const fixUrl = url => url.replace(/\/\//g, '/').replace(':/', '://')
76
const isUrl = url => url.indexOf('http') === 0 || url.indexOf('//') === 0
87

98
module.exports = function nuxtIcon (options) {
109
const hook = () => {
11-
debug('Adding icons')
1210
return generateIcons.call(this, options)
1311
}
1412

@@ -43,7 +41,6 @@ function generateIcons (moduleOptions) {
4341
// Ensure icon file exists
4442
if (!existsSync(iconSrc)) {
4543
/* eslint-disable no-console */
46-
debug(path.relative(this.options.srcDir, iconSrc), 'not found! Please create one or disable icon module.')
4744
return
4845
}
4946

packages/manifest/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
const hash = require('hash-sum')
2-
const debug = require('debug')('nuxt:pwa')
32

43
const fixUrl = url => url.replace(/\/\//g, '/').replace(':/', '://')
54
const isUrl = url => url.indexOf('http') === 0 || url.indexOf('//') === 0
65
const find = (arr, key, val) => arr.find(obj => val ? obj[key] === val : obj[key])
76

87
module.exports = function nuxtManifest (options) {
98
const hook = () => {
10-
debug('Adding manifest')
119
addManifest.call(this, options)
1210
}
1311

packages/meta/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
const debug = require('debug')('nuxt:pwa')
2-
31
const find = (arr, key, val) => arr.find(obj => val ? obj[key] === val : obj[key])
42
const isUrl = url => url.indexOf('http') === 0 || url.indexOf('//') === 0
53

64
module.exports = function nuxtMeta (_options) {
75
const hook = () => {
8-
debug('Adding meta')
96
generateMeta.call(this, _options)
107
}
118

@@ -212,8 +209,6 @@ function generateMeta (_options) {
212209
content: options.ogImage.type
213210
})
214211
}
215-
} else {
216-
debug('No host specified, skipping og:image')
217212
}
218213
}
219214

packages/onesignal/index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const path = require('path')
22
const { writeFileSync, readFileSync } = require('fs')
33
const hashSum = require('hash-sum')
4-
const debug = require('debug')('nuxt:pwa')
54
const { defaultsDeep } = require('lodash')
65

76
const fixUrl = url => url.replace(/\/\//g, '/').replace(':/', '://')
@@ -13,7 +12,6 @@ const isUrl = url => url.indexOf('http') === 0 || url.indexOf('//') === 0
1312

1413
module.exports = function nuxtOneSignal (moduleOptions) {
1514
const hook = () => {
16-
debug('Adding OneSignal')
1715
addOneSignal.call(this, moduleOptions)
1816
}
1917

@@ -92,18 +90,12 @@ function addOneSignal (moduleOptions) {
9290
if (!this.options.manifest) {
9391
this.options.manifest = {}
9492
}
95-
if (this.options.manifest.gcm_sender_id) {
96-
debug('WARNING: Overriding gcm_sender_id for OnSignal')
97-
}
9893
this.options.manifest.gcm_sender_id = options.GcmSenderId
9994

10095
// Adjust swURL option of Workbox for oneSignal
10196
if (!this.options.workbox) {
10297
this.options.workbox = {}
10398
}
104-
if (this.options.workbox.swURL) {
105-
debug('WARNING: Overriding swURL for OneSignal')
106-
}
10799
this.options.workbox.swURL = 'OneSignalSDKWorker.js'
108100

109101
// Provide OneSignalSDKWorker.js and OneSignalSDKUpdaterWorker.js

0 commit comments

Comments
 (0)