@artisan-commerce/state 0.1.1-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## 0.1.1-canary.0 (2021-02-03)
7
+
8
+ **Note:** Version bump only for package @artisan-commerce/state
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # State library
@@ -0,0 +1,13 @@
1
+ declare const CONSTANTS: {
2
+ CLIENT_NAME: string;
3
+ DEFAULT_REQUEST_TIMEOUT: number;
4
+ EXCLUDED_LOGGER_STATUS_CODES: number[];
5
+ INCLUDED_LOGGER_ENVS: string[];
6
+ INCLUDED_INTL_LOG_ENVS: string[];
7
+ COUNTRY: {
8
+ NAME: string;
9
+ CODE: string;
10
+ LANGUAGE: string;
11
+ };
12
+ };
13
+ export default CONSTANTS;
@@ -0,0 +1,2 @@
1
+ import i18n from "i18next";
2
+ export default i18n;
@@ -0,0 +1 @@
1
+ export { initState, getState, setState } from "./lib/state";
@@ -0,0 +1,3 @@
1
+ export declare const initState: <T>(initialState: T) => void;
2
+ export declare const setState: <T>(overrides: Partial<T>) => void;
3
+ export declare const getState: <T>() => T;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("state",[],e):"object"==typeof exports?exports.state=e():t.state=e()}(this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([,function(t,e,n){"use strict";n.r(e),n.d(e,"initState",(function(){return u})),n.d(e,"getState",(function(){return i})),n.d(e,"setState",(function(){return f}));var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},o={},u=function(t){Object.freeze(t),o=r({},t),Object.seal(o)},f=function(t){o=r(r({},o),t)},i=function(){return r({},o)}}])}));
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("state",[],t):"object"==typeof exports?exports.state=t():e.state=t()}(this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t){}])}));
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "@artisan-commerce/state",
3
+ "description": "Library used to share state functionality",
4
+ "version": "0.1.1-canary.0",
5
+ "main": "./build/main.bundle.js",
6
+ "types": "./build/index.d.ts",
7
+ "files": [
8
+ "build/",
9
+ "LICENSE",
10
+ "README.md"
11
+ ],
12
+ "scripts": {
13
+ "start": "webpack --config webpack.dev.js",
14
+ "dev": "webpack --watch --config webpack.dev.js",
15
+ "build": "webpack --config webpack.prod.js",
16
+ "start:build": "nodemon ./build/main.bundle.js",
17
+ "test": "jest --watchAll",
18
+ "test:all": "npm run test -- --watchAll=false --coverage",
19
+ "test:ci": "cross-env CI=true jest --runInBand",
20
+ "test:staged": "npm run test:ci --findRelatedTests",
21
+ "check-types": "tsc --noEmit",
22
+ "lint": "eslint --ignore-path .gitignore --ignore-pattern !cypress/.eslintrc.js --ext .js,jsx,.ts,.tsx .",
23
+ "lint:staged": "npm run lint --max-warnings=0",
24
+ "prettier": "prettier --ignore-path .gitignore \"**/*.+(js|jsx|ts|tsx|json|css|scss|html)\"",
25
+ "format": "npm run prettier -- --write",
26
+ "check-format": "npm run prettier -- --list-different",
27
+ "validate": "cross-env CI=true npm-run-all --parallel test:ci check-types check-format lint build",
28
+ "validate:ci": "npm-run-all --parallel check-types check-format lint",
29
+ "prepare": "npm run build"
30
+ },
31
+ "author": "Santiago Benítez",
32
+ "license": "MIT",
33
+ "dependencies": {
34
+ "@bugsnag/js": "^7.2.0",
35
+ "i18next": "^19.6.2",
36
+ "i18next-browser-languagedetector": "^5.0.0",
37
+ "i18next-xhr-backend": "^3.2.2"
38
+ },
39
+ "devDependencies": {
40
+ "@babel/core": "^7.10.5",
41
+ "@babel/preset-env": "^7.10.4",
42
+ "@babel/preset-react": "^7.10.4",
43
+ "@types/faker": "^4.1.12",
44
+ "@types/jest": "^26.0.5",
45
+ "@types/jest-in-case": "^1.0.2",
46
+ "@types/node": "^14.0.24",
47
+ "@typescript-eslint/eslint-plugin": "^3.7.0",
48
+ "@typescript-eslint/parser": "^3.7.0",
49
+ "avn": "^0.2.4",
50
+ "avn-nvm": "^0.2.2",
51
+ "clean-webpack-plugin": "^3.0.0",
52
+ "cross-env": "^7.0.2",
53
+ "dotenv-webpack": "^2.0.0",
54
+ "env-cmd": "^10.1.0",
55
+ "eslint": "^7.5.0",
56
+ "eslint-config-prettier": "^6.11.0",
57
+ "eslint-config-react-app": "^5.2.1",
58
+ "eslint-config-universe": "^4.0.0",
59
+ "eslint-plugin-cypress": "^2.11.1",
60
+ "eslint-plugin-flowtype": "^5.2.0",
61
+ "eslint-plugin-import": "^2.22.0",
62
+ "eslint-plugin-jsx-a11y": "^6.3.1",
63
+ "eslint-plugin-react": "^7.20.3",
64
+ "eslint-plugin-react-hooks": "^4.0.8",
65
+ "is-ci-cli": "^2.1.2",
66
+ "jest": "^24.9.0",
67
+ "jest-axe": "^3.5.0",
68
+ "jest-in-case": "^1.0.2",
69
+ "jest-styled-components": "^7.0.2",
70
+ "nodemon": "^2.0.4",
71
+ "npm-run-all": "^4.1.5",
72
+ "prettier": "^2.2.1",
73
+ "start-server-and-test": "^1.11.2",
74
+ "test-data-bot": "^0.8.0",
75
+ "ts-jest": "^26.1.4",
76
+ "ts-loader": "^8.0.2",
77
+ "typescript": "^3.9.7",
78
+ "webpack": "^4.43.0",
79
+ "webpack-cli": "^3.3.12",
80
+ "webpack-dev-server": "^3.11.0",
81
+ "webpack-merge": "^5.0.9"
82
+ },
83
+ "gitHead": "af97d51b69e4804d02772cfcf181c48a8134d5aa"
84
+ }