react-onesignal
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -37,2 +37,5 @@ /* eslint-disable no-unused-vars */ | ||
} | ||
if (key.includes('.')) { | ||
key = "\"" + key + "\""; | ||
} | ||
result += new Array(TABS_LENGTH * indent + 1).join(' ') + key + ": "; | ||
@@ -39,0 +42,0 @@ switch (typeof option) { |
@@ -41,2 +41,5 @@ 'use strict'; | ||
} | ||
if (key.includes('.')) { | ||
key = "\"" + key + "\""; | ||
} | ||
result += new Array(TABS_LENGTH * indent + 1).join(' ') + key + ": "; | ||
@@ -43,0 +46,0 @@ switch (typeof option) { |
@@ -15,2 +15,3 @@ export interface IOneSignal { | ||
export interface OneSignalOptions { | ||
safari_web_id?: string; | ||
subdomainName?: string; | ||
@@ -29,2 +30,15 @@ allowLocalhostAsSecureOrigin?: boolean; | ||
showCredit?: boolean; | ||
prenotify?: boolean; | ||
theme?: 'default' | 'inverse'; | ||
offset?: { | ||
bottom?: string; | ||
right?: string; | ||
left?: string; | ||
}; | ||
text?: { | ||
[key: string]: string; | ||
}; | ||
colors?: { | ||
[key: string]: string; | ||
}; | ||
}; | ||
@@ -31,0 +45,0 @@ } |
{ | ||
"name": "react-onesignal", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "React OneSignal Module: Make it easy to integrate OneSignal with your React App!", | ||
@@ -5,0 +5,0 @@ "author": "pedro-lb", |
@@ -26,3 +26,3 @@ // eslint-disable-next-line no-unused-vars | ||
for (let index = 0; index < optionKeys.length; index += 1) { | ||
const key = optionKeys[index]; | ||
let key = optionKeys[index]; | ||
@@ -42,2 +42,6 @@ const hasOwnProperty = Object.prototype.hasOwnProperty.call(options, key); | ||
if (key.includes('.')) { | ||
key = `"${key}"` | ||
} | ||
result += `${new Array(TABS_LENGTH * indent + 1).join(' ') + key}: `; | ||
@@ -44,0 +48,0 @@ |
@@ -16,2 +16,3 @@ export interface IOneSignal { | ||
export interface OneSignalOptions { | ||
safari_web_id?: string, | ||
subdomainName?: string; | ||
@@ -30,2 +31,15 @@ allowLocalhostAsSecureOrigin?: boolean; | ||
showCredit?: boolean; | ||
prenotify?: boolean; | ||
theme?: 'default' | 'inverse'; | ||
offset?: { | ||
bottom?: string; | ||
right?: string; | ||
left?: string; | ||
}, | ||
text?: { | ||
[key: string]: string; | ||
}; | ||
colors?: { | ||
[key: string]: string; | ||
}; | ||
} | ||
@@ -32,0 +46,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
78703
1254