Skip to content

Commit

Permalink
Merge pull request #3 from OneSignal/1.0.0-beta2
Browse files Browse the repository at this point in the history
1.0.0 beta2 Release
  • Loading branch information
rgomezp authored Jul 29, 2021
2 parents c3351ed + 147f8d9 commit af1b2f8
Show file tree
Hide file tree
Showing 5 changed files with 3,232 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules

# builds
build
dist
.rpt2_cache

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
20 changes: 20 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules

# builds
build
.rpt2_cache

# misc
.DS_Store
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const ONE_SIGNAL_SCRIPT_SRC = 'https://cdn.onesignal.com/sdks/OneSignalSDK.js';
const ONESIGNAL_NOT_SETUP_ERROR = 'OneSignal is not setup correctly.';
const MAX_TIMEOUT = 30;

const VueApp: any = Vue;
let isOneSignalInitialized = false;
const vueOneSignalFunctionQueue: IOneSignalFunctionCall[] = [];

Expand Down Expand Up @@ -855,7 +856,7 @@ const OneSignalVue: IOneSignal = {
};

const OneSignalVuePlugin = {
install(app: Vue) {
install(app: typeof VueApp) {
app.prototype.$OneSignal = OneSignalVue as IOneSignal;
}
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onesignal-vue",
"version": "1.0.0-beta1",
"version": "1.0.0-beta2",
"description": "Vue OneSignal Plugin: Make it easy to integrate OneSignal with your Vue App!",
"author": "rgomezp",
"contributors": [{ "name": "Rodrigo Gomez-Palacio" }],
Expand All @@ -16,7 +16,7 @@
"scripts": {
"lint": "./node_modules/.bin/eslint ./src --ext .js,.ts,.tsx",
"build": "rollup -c",
"prepublish": "yarn run build"
"prepare": "yarn run build"
},
"devDependencies": {
"@babel/core": "^7.0.0",
Expand Down
Loading

0 comments on commit af1b2f8

Please sign in to comment.