diff --git a/package-lock.json b/package-lock.json index dd1f4fd..4aea19d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "jira-timer", - "version": "0.1.13", + "version": "1.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index ad920d6..359273e 100644 --- a/package.json +++ b/package.json @@ -1,161 +1,161 @@ -{ - "name": "jira-timer", - "version": "1.0.0", - "description": "Jira Timer", - "productName": "Jira Timer", - "main": "index.js", - "scripts": { - "postinstall": "electron-builder install-app-deps", - "start": "NODE_ENV=development electron .", - "dev": "concurrently -k 'node -r babel-register server.js' 'npm start'", - "pack": "NODE_ENV=production webpack --config webpack.config.production.babel.js", - "build": "npm run pack && electron-builder", - "release": "npm --no-git-tag-version version patch && npm run pack && electron-builder --mac --linux -p always && open-url https://github.com/alexcroox/jira-timer-menubar/releases" - }, - "author": "Alex Crooks", - "repository": { - "type": "git", - "url": "https://github.com/alexcroox/jira-timer" - }, - "license": "MIT", - "engine-strict": true, - "build": { - "productName": "Jira Timer", - "appId": "org.sidigital.jira-timer", - "publish": [ - { - "provider": "github", - "owner": "alexcroox", - "repo": "jira-timer-menubar" - } - ], - "directories": { - "output": "release" - }, - "files": [ - "dist/", - "static/", - "index.html", - "index.js", - "jira-worklogs.js", - "node_modules/", - "package.json", - "!**/signing/" - ], - "dmg": { - "contents": [ - { - "x": 410, - "y": 150, - "type": "link", - "path": "/Applications" - }, - { - "x": 130, - "y": 150, - "type": "file" - } - ] - }, - "mac": { - "icon": "static/app.icns" - }, - "linux": { - "icon": "static", - "category": "Utility" - } - }, - "dependencies": { - "@fortawesome/fontawesome": "^1.1.3", - "@fortawesome/fontawesome-free-solid": "^5.0.6", - "@fortawesome/react-fontawesome": "0.0.17", - "array-flatten": "^2.1.1", - "auto-launch": "^5.0.5", - "babel-core": "^6.26.0", - "babel-eslint": "^8.0.2", - "babel-loader": "^7.1.2", - "babel-plugin-styled-components": "^1.5.0", - "babel-plugin-transform-class-properties": "^6.24.1", - "babel-polyfill": "^6.26.0", - "babel-preset-env": "^1.6.1", - "babel-preset-react": "^6.24.1", - "babel-preset-react-hmre": "^1.1.1", - "babel-preset-stage-0": "^6.16.0", - "babel-register": "^6.26.0", - "contra": "^1.9.4", - "date-fns": "^1.29.0", - "delay": "^2.0.0", - "electron-log": "^2.2.14", - "electron-store": "^1.3.0", - "electron-updater": "^2.20.1", - "fix-path": "^2.1.0", - "hh-mm-ss": "^1.2.0", - "history": "^4.7.2", - "keytar": "^4.1.0", - "keytar-prebuild": "^4.1.1", - "lodash.filter": "^4.6.0", - "lodash.find": "^4.6.0", - "lodash.findindex": "^4.6.0", - "lodash.isboolean": "^3.0.3", - "lodash.isempty": "^4.4.0", - "lodash.orderby": "^4.6.0", - "lodash.remove": "^4.7.0", - "lodash.sortby": "^4.7.0", - "menubar": "^5.1.0", - "node-loader": "^0.6.0", - "object-get": "^2.1.0", - "opn": "^5.2.0", - "parse-duration": "^0.1.1", - "performance-now": "^2.1.0", - "pretty-ms": "^3.1.0", - "prop-types": "^15.6.0", - "ramda": "^0.25.0", - "react": "^16.2.0", - "react-dom": "^16.2.0", - "react-hot-loader": "^4.0.0-beta.18", - "react-redux": "^5.0.6", - "react-router": "^4.2.0", - "react-router-dom": "^4.2.2", - "react-select": "^1.2.1", - "redux": "^3.6.0", - "redux-persist": "^5.5.0", - "redux-seamless-immutable": "^0.3.2", - "redux-thunk": "^2.1.0", - "request": "^2.83.0", - "request-promise": "^4.2.2", - "revalidation": "^0.12.1", - "seamless-immutable": "^7.1.2", - "string-template": "^1.0.0", - "styled-components": "^3.0.2", - "styled-components-spacing": "^2.1.3", - "uuid": "^3.2.1" - }, - "devDependencies": { - "concurrently": "^3.5.1", - "css-loader": "^0.28.9", - "devtron": "^1.4.0", - "electron": "^1.8.2-beta.5", - "electron-builder": "^20.0.4", - "electron-debug": "^1.5.0", - "electron-devtools-installer": "^2.2.3", - "eslint": "^4.16.0", - "eslint-config-airbnb": "^16.1.0", - "eslint-import-resolver-webpack": "^0.8.4", - "eslint-plugin-import": "^2.2.0", - "eslint-plugin-jsx-a11y": "^6.0.3", - "eslint-plugin-react": "^7.6.0", - "express": "^4.14.0", - "file-loader": "^1.1.6", - "json": "^9.0.6", - "npm-version": "^1.1.0", - "open-url": "^2.0.2", - "style-loader": "^0.19.1", - "stylelint": "^8.4.0", - "stylelint-config-standard": "^17.0.0", - "uglifyjs-webpack-plugin": "^1.1.6", - "webpack": "^3.8.1", - "webpack-dev-middleware": "^2.0.4", - "webpack-hot-middleware": "^2.13.2", - "webpack-merge": "^4.1.1" - } -} +{ + "name": "jira-timer", + "version": "1.0.1", + "description": "Jira Timer", + "productName": "Jira Timer", + "main": "index.js", + "scripts": { + "postinstall": "electron-builder install-app-deps", + "start": "NODE_ENV=development electron .", + "dev": "concurrently -k 'node -r babel-register server.js' 'npm start'", + "pack": "NODE_ENV=production webpack --config webpack.config.production.babel.js", + "build": "npm run pack && electron-builder", + "release": "npm --no-git-tag-version version patch && npm run pack && electron-builder --linux --mac -p always && open-url https://github.com/alexcroox/jira-timer-menubar/releases" + }, + "author": "Alex Crooks", + "repository": { + "type": "git", + "url": "https://github.com/alexcroox/jira-timer" + }, + "license": "MIT", + "engine-strict": true, + "build": { + "productName": "Jira Timer", + "appId": "org.sidigital.jira-timer", + "publish": [ + { + "provider": "github", + "owner": "alexcroox", + "repo": "jira-timer-menubar" + } + ], + "directories": { + "output": "release" + }, + "files": [ + "dist/", + "static/", + "index.html", + "index.js", + "jira-worklogs.js", + "node_modules/", + "package.json", + "!**/signing/" + ], + "dmg": { + "contents": [ + { + "x": 410, + "y": 150, + "type": "link", + "path": "/Applications" + }, + { + "x": 130, + "y": 150, + "type": "file" + } + ] + }, + "mac": { + "icon": "static/app.icns" + }, + "linux": { + "icon": "static", + "category": "Utility" + } + }, + "dependencies": { + "@fortawesome/fontawesome": "^1.1.3", + "@fortawesome/fontawesome-free-solid": "^5.0.6", + "@fortawesome/react-fontawesome": "0.0.17", + "array-flatten": "^2.1.1", + "auto-launch": "^5.0.5", + "babel-core": "^6.26.0", + "babel-eslint": "^8.0.2", + "babel-loader": "^7.1.2", + "babel-plugin-styled-components": "^1.5.0", + "babel-plugin-transform-class-properties": "^6.24.1", + "babel-polyfill": "^6.26.0", + "babel-preset-env": "^1.6.1", + "babel-preset-react": "^6.24.1", + "babel-preset-react-hmre": "^1.1.1", + "babel-preset-stage-0": "^6.16.0", + "babel-register": "^6.26.0", + "contra": "^1.9.4", + "date-fns": "^1.29.0", + "delay": "^2.0.0", + "electron-log": "^2.2.14", + "electron-store": "^1.3.0", + "electron-updater": "^2.20.1", + "fix-path": "^2.1.0", + "hh-mm-ss": "^1.2.0", + "history": "^4.7.2", + "keytar": "^4.1.0", + "keytar-prebuild": "^4.1.1", + "lodash.filter": "^4.6.0", + "lodash.find": "^4.6.0", + "lodash.findindex": "^4.6.0", + "lodash.isboolean": "^3.0.3", + "lodash.isempty": "^4.4.0", + "lodash.orderby": "^4.6.0", + "lodash.remove": "^4.7.0", + "lodash.sortby": "^4.7.0", + "menubar": "^5.1.0", + "node-loader": "^0.6.0", + "object-get": "^2.1.0", + "opn": "^5.2.0", + "parse-duration": "^0.1.1", + "performance-now": "^2.1.0", + "pretty-ms": "^3.1.0", + "prop-types": "^15.6.0", + "ramda": "^0.25.0", + "react": "^16.2.0", + "react-dom": "^16.2.0", + "react-hot-loader": "^4.0.0-beta.18", + "react-redux": "^5.0.6", + "react-router": "^4.2.0", + "react-router-dom": "^4.2.2", + "react-select": "^1.2.1", + "redux": "^3.6.0", + "redux-persist": "^5.5.0", + "redux-seamless-immutable": "^0.3.2", + "redux-thunk": "^2.1.0", + "request": "^2.83.0", + "request-promise": "^4.2.2", + "revalidation": "^0.12.1", + "seamless-immutable": "^7.1.2", + "string-template": "^1.0.0", + "styled-components": "^3.0.2", + "styled-components-spacing": "^2.1.3", + "uuid": "^3.2.1" + }, + "devDependencies": { + "concurrently": "^3.5.1", + "css-loader": "^0.28.9", + "devtron": "^1.4.0", + "electron": "^1.8.2-beta.5", + "electron-builder": "^20.0.4", + "electron-debug": "^1.5.0", + "electron-devtools-installer": "^2.2.3", + "eslint": "^4.16.0", + "eslint-config-airbnb": "^16.1.0", + "eslint-import-resolver-webpack": "^0.8.4", + "eslint-plugin-import": "^2.2.0", + "eslint-plugin-jsx-a11y": "^6.0.3", + "eslint-plugin-react": "^7.6.0", + "express": "^4.14.0", + "file-loader": "^1.1.6", + "json": "^9.0.6", + "npm-version": "^1.1.0", + "open-url": "^2.0.2", + "style-loader": "^0.19.1", + "stylelint": "^8.4.0", + "stylelint-config-standard": "^17.0.0", + "uglifyjs-webpack-plugin": "^1.1.6", + "webpack": "^3.8.1", + "webpack-dev-middleware": "^2.0.4", + "webpack-hot-middleware": "^2.13.2", + "webpack-merge": "^4.1.1" + } +} diff --git a/src/lib/storage.js b/src/lib/storage.js index 15bdbc8..6752965 100644 --- a/src/lib/storage.js +++ b/src/lib/storage.js @@ -22,7 +22,7 @@ export const storeState = (currentState) => { // we want to be able to fetch them next time we load mutableState.worklog.updating = false - mutableState.update = initialState + mutableState.updater = initialState storage.set('redux', mutableState) }