New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-onesignal

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-onesignal - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

2

package.json
{
"name": "react-onesignal",
"version": "1.4.0",
"version": "1.4.1",
"description": "React OneSignal Module: Make it easy to integrate OneSignal with your React App!",

@@ -5,0 +5,0 @@ "author": "pedro-lb",

@@ -41,2 +41,3 @@ # React OneSignal

```js
safari_web_id?: string;
subdomainName?: string;

@@ -55,2 +56,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;
};
}

@@ -57,0 +71,0 @@ ```

@@ -42,3 +42,3 @@ // eslint-disable-next-line no-unused-vars

if (key.includes('.')) {
key = `"${key}"`
key = `"${key}"`;
}

@@ -45,0 +45,0 @@

export interface IOneSignal {
notificationPermission: string[],
registerForPushNotifications: () => Promise<any>,
getNotificationPermission: () => Promise<string>,
setEmail: (email: string) => Promise<string>,
getEmailId: () => Promise<string>,
getUserId: () => Promise<string>,
setExternalUserId: (externalUserId: string | number) => Promise<void>,
getExternalUserId: () => Promise<any>,
initialized: boolean,
notificationPermission: string[];
registerForPushNotifications: () => Promise<any>;
getNotificationPermission: () => Promise<string>;
setEmail: (email: string) => Promise<string>;
getEmailId: () => Promise<string>;
getUserId: () => Promise<string>;
setExternalUserId: (externalUserId: string | number) => Promise<void>;
getExternalUserId: () => Promise<any>;
initialized: boolean;
sendTag: (key: string, val: string) => Promise<string>;

@@ -16,3 +16,4 @@ sendTags: (keyValues: object) => Promise<any>;

export interface OneSignalOptions {
safari_web_id?: string,
// eslint-disable-next-line camelcase
safari_web_id?: string;
subdomainName?: string;

@@ -37,3 +38,3 @@ allowLocalhostAsSecureOrigin?: boolean;

left?: string;
},
};
text?: {

@@ -40,0 +41,0 @@ [key: string]: string;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc