diff --git a/dist/useCountdown.js b/dist/useCountdown.js index 60bd86b..e1c8f47 100644 --- a/dist/useCountdown.js +++ b/dist/useCountdown.js @@ -16,7 +16,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); var react_1 = __importDefault(require("react")); var DEFAULT_OPTIONS = { - step: 1000 + step: 1000, }; function useCountdown(options) { var _a = react_1.default.useState(), timeleft = _a[0], setTimeleft = _a[1]; @@ -47,7 +47,7 @@ function useCountdown(options) { }, [timeleft]); var result = { timeleft: timeleft || 0, - start: start + start: start, }; return result; } diff --git a/package.json b/package.json index 44f7b52..99924c5 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "test": "jest", "build:test": "yarn test && yarn build", "publish": "yarn build:test && npm publish --registry https://npm.osa.cubetiqs.com", - "publish:npm": "yarn build:test && npm publish --registry https://registry.npmjs.com", + "publish:npm": "yarn build && npm publish --registry https://registry.npmjs.com", "run:example": "cd example && yarn start" }, "devDependencies": { @@ -60,5 +60,472 @@ "test/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [ "eslint --fix" ] + }, + "directories": { + "example": "example" + }, + "dependencies": { + "abab": "^2.0.5", + "acorn-jsx": "^5.3.1", + "acorn-globals": "^6.0.0", + "acorn-walk": "^7.2.0", + "aggregate-error": "^3.1.0", + "ajv": "^6.12.5", + "ansi-colors": "^4.1.1", + "ansi-escapes": "^4.3.1", + "ansi-regex": "^5.0.0", + "ansi-styles": "^4.2.1", + "arr-diff": "^4.0.0", + "anymatch": "^3.1.1", + "arr-flatten": "^1.1.0", + "arr-union": "^3.1.0", + "array-unique": "^0.3.2", + "argparse": "^1.0.10", + "assert-plus": "^1.0.0", + "asn1": "^0.2.4", + "assign-symbols": "^1.0.0", + "astral-regex": "^2.0.0", + "atob": "^2.1.2", + "asynckit": "^0.4.0", + "aws-sign2": "^0.7.0", + "aws4": "^1.10.1", + "babel-plugin-dynamic-import-node": "^2.3.3", + "babel-plugin-istanbul": "^6.0.0", + "babel-plugin-jest-hoist": "^26.2.0", + "babel-preset-jest": "^26.3.0", + "babel-preset-current-node-syntax": "^0.1.3", + "balanced-match": "^1.0.0", + "base": "^0.11.2", + "bcrypt-pbkdf": "^1.0.2", + "brace-expansion": "^1.1.11", + "braces": "^3.0.2", + "browser-process-hrtime": "^1.0.0", + "bs-logger": "^0.2.6", + "browserslist": "^4.14.2", + "bser": "^2.1.1", + "buffer-from": "^1.1.1", + "cache-base": "^1.0.1", + "camelcase": "^5.3.1", + "callsites": "^3.1.0", + "caniuse-lite": "^1.0.30001131", + "capture-exit": "^2.0.0", + "caseless": "^0.12.0", + "char-regex": "^1.0.2", + "ci-info": "^2.0.0", + "chalk": "^4.1.0", + "class-utils": "^0.3.6", + "clean-stack": "^2.2.0", + "cli-truncate": "^2.1.0", + "cliui": "^6.0.0", + "cli-cursor": "^3.1.0", + "collect-v8-coverage": "^1.0.1", + "collection-visit": "^1.0.0", + "co": "^4.6.0", + "color-convert": "^2.0.1", + "combined-stream": "^1.0.8", + "commander": "^6.1.0", + "component-emitter": "^1.3.0", + "compare-versions": "^3.6.0", + "concat-map": "^0.0.1", + "copy-descriptor": "^0.1.1", + "convert-source-map": "^1.7.0", + "core-js-compat": "^3.6.5", + "core-util-is": "^1.0.2", + "cosmiconfig": "^7.0.0", + "color-name": "^1.1.4", + "cross-spawn": "^7.0.3", + "cssom": "^0.4.4", + "cssstyle": "^2.3.0", + "csstype": "^3.0.3", + "dashdash": "^1.14.1", + "data-urls": "^2.0.0", + "decamelize": "^1.2.0", + "debug": "^4.1.1", + "decode-uri-component": "^0.2.0", + "decimal.js": "^10.2.0", + "dedent": "^0.7.0", + "deep-is": "^0.1.3", + "deepmerge": "^4.2.2", + "define-properties": "^1.1.3", + "define-property": "^0.2.5", + "detect-newline": "^3.1.0", + "delayed-stream": "^1.0.0", + "diff-sequences": "^26.3.0", + "domexception": "^2.0.1", + "ecc-jsbn": "^0.1.2", + "doctrine": "^3.0.0", + "electron-to-chromium": "^1.3.570", + "emoji-regex": "^8.0.0", + "emittery": "^0.7.1", + "error-ex": "^1.3.2", + "end-of-stream": "^1.4.4", + "enquirer": "^2.3.6", + "es-abstract": "^1.18.0-next.0", + "es-to-primitive": "^1.2.1", + "escalade": "^3.1.0", + "escape-string-regexp": "^1.0.5", + "escodegen": "^1.14.3", + "eslint-scope": "^5.1.1", + "eslint-utils": "^2.1.0", + "espree": "^7.3.0", + "eslint-visitor-keys": "^1.3.0", + "esquery": "^1.3.1", + "esrecurse": "^4.3.0", + "esprima": "^4.0.1", + "estraverse": "^4.3.0", + "esutils": "^2.0.3", + "exec-sh": "^0.3.4", + "execa": "^4.0.3", + "exit": "^0.1.2", + "expand-brackets": "^2.1.4", + "expect": "^26.4.2", + "extend": "^3.0.2", + "extglob": "^2.0.4", + "extend-shallow": "^2.0.1", + "extsprintf": "^1.3.0", + "fast-deep-equal": "^3.1.3", + "fast-diff": "^1.2.0", + "fast-json-stable-stringify": "^2.1.0", + "fast-levenshtein": "^2.0.6", + "fb-watchman": "^2.0.1", + "figures": "^3.2.0", + "file-entry-cache": "^5.0.1", + "fill-range": "^7.0.1", + "flat-cache": "^2.0.1", + "flatted": "^2.0.2", + "for-in": "^1.0.2", + "forever-agent": "^0.6.1", + "find-up": "^4.1.0", + "form-data": "^2.3.3", + "fragment-cache": "^0.2.1", + "fs.realpath": "^1.0.0", + "function-bind": "^1.1.1", + "functional-red-black-tree": "^1.0.1", + "gensync": "^1.0.0-beta.1", + "get-caller-file": "^2.0.5", + "find-versions": "^3.2.0", + "get-own-enumerable-property-symbols": "^3.0.2", + "get-stdin": "^6.0.0", + "get-package-type": "^0.1.0", + "get-stream": "^5.2.0", + "get-value": "^2.0.6", + "getpass": "^0.1.7", + "glob": "^7.1.6", + "glob-parent": "^5.1.1", + "globals": "^11.12.0", + "graceful-fs": "^4.2.4", + "growly": "^1.3.0", + "har-schema": "^2.0.0", + "har-validator": "^5.1.5", + "has": "^1.0.3", + "has-flag": "^4.0.0", + "has-value": "^1.0.0", + "has-values": "^1.0.0", + "has-symbols": "^1.0.1", + "hosted-git-info": "^2.8.8", + "html-encoding-sniffer": "^2.0.1", + "html-escaper": "^2.0.2", + "http-signature": "^1.2.0", + "human-signals": "^1.1.1", + "iconv-lite": "^0.4.24", + "ignore": "^4.0.6", + "import-local": "^3.0.2", + "import-fresh": "^3.2.1", + "imurmurhash": "^0.1.4", + "indent-string": "^4.0.0", + "inflight": "^1.0.6", + "inherits": "^2.0.4", + "invariant": "^2.2.4", + "ip-regex": "^2.1.0", + "is-accessor-descriptor": "^1.0.0", + "is-arrayish": "^0.2.1", + "is-buffer": "^1.1.6", + "is-ci": "^2.0.0", + "is-callable": "^1.2.1", + "is-data-descriptor": "^1.0.0", + "is-descriptor": "^1.0.2", + "is-date-object": "^1.0.2", + "is-extendable": "^0.1.1", + "is-docker": "^2.1.1", + "is-fullwidth-code-point": "^3.0.0", + "is-extglob": "^2.1.1", + "is-generator-fn": "^2.1.0", + "is-glob": "^4.0.1", + "is-negative-zero": "^2.0.0", + "is-number": "^3.0.0", + "is-obj": "^1.0.1", + "is-plain-object": "^2.0.4", + "is-potential-custom-element-name": "^1.0.0", + "is-regex": "^1.1.1", + "is-regexp": "^1.0.0", + "is-stream": "^2.0.0", + "is-symbol": "^1.0.3", + "is-typedarray": "^1.0.0", + "is-windows": "^1.0.2", + "isarray": "^1.0.0", + "is-wsl": "^2.2.0", + "isexe": "^2.0.0", + "isobject": "^3.0.1", + "isstream": "^0.1.2", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^4.0.3", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "jest-changed-files": "^26.3.0", + "istanbul-reports": "^3.0.2", + "jest-cli": "^26.4.2", + "jest-diff": "^26.4.2", + "jest-config": "^26.4.2", + "jest-docblock": "^26.0.0", + "jest-environment-node": "^26.3.0", + "jest-each": "^26.4.2", + "jest-environment-jsdom": "^26.3.0", + "jest-get-type": "^26.3.0", + "jest-haste-map": "^26.3.0", + "jest-jasmine2": "^26.4.2", + "jest-leak-detector": "^26.4.2", + "jest-matcher-utils": "^26.4.2", + "jest-message-util": "^26.3.0", + "jest-mock": "^26.3.0", + "jest-regex-util": "^26.0.0", + "jest-pnp-resolver": "^1.2.2", + "jest-resolve": "^26.4.0", + "jest-runner": "^26.4.2", + "jest-resolve-dependencies": "^26.4.2", + "jest-runtime": "^26.4.2", + "jest-snapshot": "^26.4.2", + "jest-serializer": "^26.3.0", + "jest-util": "^26.3.0", + "jest-validate": "^26.4.2", + "jest-watcher": "^26.3.0", + "jest-worker": "^26.3.0", + "js-tokens": "^4.0.0", + "js-yaml": "^3.14.0", + "jsbn": "^0.1.1", + "jsdom": "^16.4.0", + "json-parse-even-better-errors": "^2.3.1", + "jsesc": "^2.5.2", + "json-schema": "^0.2.3", + "json-schema-traverse": "^0.4.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "json-stringify-safe": "^5.0.1", + "jsprim": "^1.4.1", + "json5": "^2.1.3", + "kind-of": "^3.2.2", + "kleur": "^3.0.3", + "leven": "^3.1.0", + "levn": "^0.4.1", + "lines-and-columns": "^1.1.6", + "listr2": "^2.6.2", + "locate-path": "^5.0.0", + "lodash.memoize": "^4.1.2", + "lodash": "^4.17.20", + "lodash.sortby": "^4.7.0", + "log-update": "^4.0.0", + "log-symbols": "^4.0.0", + "loose-envify": "^1.4.0", + "make-error": "^1.3.6", + "make-dir": "^3.1.0", + "map-cache": "^0.2.2", + "map-visit": "^1.0.0", + "merge-stream": "^2.0.0", + "micromatch": "^4.0.2", + "mime-db": "^1.44.0", + "makeerror": "^1.0.11", + "mime-types": "^2.1.27", + "minimatch": "^3.0.4", + "mimic-fn": "^2.1.0", + "minimist": "^1.2.5", + "mixin-deep": "^1.3.2", + "mkdirp": "^1.0.4", + "ms": "^2.1.2", + "natural-compare": "^1.4.0", + "nanomatch": "^1.2.13", + "nice-try": "^1.0.5", + "node-int64": "^0.4.0", + "node-modules-regexp": "^1.0.0", + "node-notifier": "^8.0.0", + "node-releases": "^1.1.61", + "normalize-package-data": "^2.5.0", + "normalize-path": "^3.0.0", + "npm-run-path": "^4.0.1", + "nwsapi": "^2.2.0", + "oauth-sign": "^0.9.0", + "object-copy": "^0.1.0", + "object-visit": "^1.0.1", + "object-inspect": "^1.8.0", + "object-keys": "^1.1.1", + "object.pick": "^1.3.0", + "once": "^1.4.0", + "object.assign": "^4.1.1", + "onetime": "^5.1.2", + "opencollective-postinstall": "^2.0.3", + "optionator": "^0.9.1", + "p-each-series": "^2.1.0", + "p-limit": "^2.3.0", + "p-finally": "^1.0.0", + "p-locate": "^4.1.0", + "p-try": "^2.2.0", + "p-map": "^4.0.0", + "parent-module": "^1.0.1", + "parse-json": "^5.1.0", + "parse5": "^5.1.1", + "pascalcase": "^0.1.1", + "path-exists": "^4.0.0", + "path-is-absolute": "^1.0.1", + "path-key": "^2.0.1", + "path-parse": "^1.0.6", + "path-type": "^4.0.0", + "performance-now": "^2.1.0", + "picomatch": "^2.2.2", + "pirates": "^4.0.1", + "pkg-dir": "^4.2.0", + "prelude-ls": "^1.1.2", + "please-upgrade-node": "^3.2.0", + "prettier-linter-helpers": "^1.0.0", + "pretty-format": "^26.4.2", + "posix-character-classes": "^0.1.1", + "prompts": "^2.3.2", + "psl": "^1.8.0", + "pump": "^3.0.0", + "punycode": "^2.1.1", + "qs": "^6.5.2", + "react-is": "^16.13.1", + "read-pkg-up": "^7.0.1", + "read-pkg": "^5.2.0", + "regenerate-unicode-properties": "^8.2.0", + "regenerate": "^1.4.1", + "regenerator-runtime": "^0.13.7", + "regex-not": "^1.0.2", + "regenerator-transform": "^0.14.5", + "regexpp": "^3.1.0", + "progress": "^2.0.3", + "regexpu-core": "^4.7.0", + "regjsgen": "^0.5.2", + "regjsparser": "^0.6.4", + "repeat-string": "^1.6.1", + "repeat-element": "^1.1.3", + "request": "^2.88.2", + "request-promise-core": "^1.1.4", + "resolve": "^1.17.0", + "require-directory": "^2.1.1", + "request-promise-native": "^1.0.9", + "require-main-filename": "^2.0.0", + "resolve-from": "^5.0.0", + "resolve-cwd": "^3.0.0", + "ret": "^0.1.15", + "resolve-url": "^0.2.1", + "restore-cursor": "^3.1.0", + "rsvp": "^4.8.5", + "rimraf": "^3.0.2", + "rxjs": "^6.6.3", + "safe-regex": "^1.1.0", + "safe-buffer": "^5.2.1", + "safer-buffer": "^2.1.2", + "semver-regex": "^2.0.0", + "saxes": "^5.0.1", + "sane": "^4.1.0", + "semver": "^5.7.1", + "set-blocking": "^2.0.0", + "shebang-command": "^2.0.0", + "set-value": "^2.0.1", + "shebang-regex": "^3.0.0", + "shellwords": "^0.1.1", + "slash": "^3.0.0", + "sisteransi": "^1.0.5", + "signal-exit": "^3.0.3", + "snapdragon": "^0.8.2", + "slice-ansi": "^2.1.0", + "snapdragon-node": "^2.1.1", + "snapdragon-util": "^3.0.1", + "semver-compare": "^1.0.0", + "source-map": "^0.6.1", + "levenary": "^1.1.1", + "source-map-resolve": "^0.5.3", + "spdx-correct": "^3.1.1", + "spdx-exceptions": "^2.3.0", + "source-map-support": "^0.5.19", + "source-map-url": "^0.4.0", + "spdx-expression-parse": "^3.0.1", + "split-string": "^3.1.0", + "spdx-license-ids": "^3.0.6", + "stack-utils": "^2.0.2", + "static-extend": "^0.1.2", + "sshpk": "^1.16.1", + "sprintf-js": "^1.0.3", + "string-argv": "^0.3.1", + "stealthy-require": "^1.1.1", + "string-length": "^4.0.1", + "string.prototype.trimstart": "^1.0.1", + "string.prototype.trimend": "^1.0.1", + "stringify-object": "^3.3.0", + "strip-ansi": "^6.0.0", + "string-width": "^4.2.0", + "strip-eof": "^1.0.0", + "strip-bom": "^4.0.0", + "strip-json-comments": "^3.1.1", + "strip-final-newline": "^2.0.0", + "supports-color": "^7.2.0", + "supports-hyperlinks": "^2.1.0", + "table": "^5.4.6", + "symbol-tree": "^3.2.4", + "text-table": "^0.2.0", + "test-exclude": "^6.0.0", + "throat": "^5.0.0", + "terminal-link": "^2.1.1", + "tmpl": "^1.0.4", + "to-regex": "^3.0.2", + "through": "^2.3.8", + "to-object-path": "^0.3.0", + "to-regex-range": "^5.0.1", + "to-fast-properties": "^2.0.0", + "tr46": "^2.0.2", + "tough-cookie": "^2.5.0", + "tslib": "^1.13.0", + "tunnel-agent": "^0.6.0", + "tsutils": "^3.17.1", + "type-check": "^0.3.2", + "type-detect": "^4.0.8", + "type-fest": "^0.8.1", + "typedarray-to-buffer": "^3.1.5", + "tweetnacl": "^0.14.5", + "unicode-canonical-property-names-ecmascript": "^1.0.4", + "unicode-match-property-ecmascript": "^1.0.4", + "union-value": "^1.0.1", + "unset-value": "^1.0.0", + "unicode-match-property-value-ecmascript": "^1.2.0", + "unicode-property-aliases-ecmascript": "^1.1.0", + "urix": "^0.1.0", + "uri-js": "^4.4.0", + "use": "^3.1.1", + "v8-compile-cache": "^2.1.1", + "v8-to-istanbul": "^5.0.1", + "verror": "^1.10.0", + "uuid": "^8.3.0", + "w3c-hr-time": "^1.0.2", + "walker": "^1.0.7", + "whatwg-encoding": "^1.0.5", + "w3c-xmlserializer": "^2.0.0", + "validate-npm-package-license": "^3.0.4", + "whatwg-mimetype": "^2.3.0", + "whatwg-url": "^8.2.2", + "which": "^2.0.2", + "which-module": "^2.0.0", + "webidl-conversions": "^6.1.0", + "which-pm-runs": "^1.0.0", + "word-wrap": "^1.2.3", + "wrap-ansi": "^6.2.0", + "wrappy": "^1.0.2", + "write": "^1.0.3", + "write-file-atomic": "^3.0.3", + "ws": "^7.3.1", + "y18n": "^4.0.0", + "xmlchars": "^2.2.0", + "xml-name-validator": "^3.0.0", + "yargs": "^15.4.1", + "yaml": "^1.10.0", + "yargs-parser": "^18.1.3", + "acorn": "^7.4.0", + "remove-trailing-separator": "^1.1.0" } }