kitchen-simulator 1.1.1-test.47 → 1.1.1-test.48
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/es/utils/id-broker.js +2 -2
- package/lib/utils/id-broker.js +2 -3
- package/package.json +15 -16
package/es/utils/id-broker.js
CHANGED
|
@@ -4,7 +4,7 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
4
4
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import
|
|
7
|
+
import { nanoid } from 'nanoid';
|
|
8
8
|
export var IDBroker = /*#__PURE__*/function () {
|
|
9
9
|
function IDBroker() {
|
|
10
10
|
_classCallCheck(this, IDBroker);
|
|
@@ -12,7 +12,7 @@ export var IDBroker = /*#__PURE__*/function () {
|
|
|
12
12
|
return _createClass(IDBroker, null, [{
|
|
13
13
|
key: "acquireID",
|
|
14
14
|
value: function acquireID() {
|
|
15
|
-
return
|
|
15
|
+
return nanoid();
|
|
16
16
|
}
|
|
17
17
|
}]);
|
|
18
18
|
}();
|
package/lib/utils/id-broker.js
CHANGED
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = exports.IDBroker = void 0;
|
|
7
|
-
var
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
7
|
+
var _nanoid = require("nanoid");
|
|
9
8
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
9
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
10
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
@@ -19,7 +18,7 @@ var IDBroker = exports.IDBroker = /*#__PURE__*/function () {
|
|
|
19
18
|
return _createClass(IDBroker, null, [{
|
|
20
19
|
key: "acquireID",
|
|
21
20
|
value: function acquireID() {
|
|
22
|
-
return
|
|
21
|
+
return (0, _nanoid.nanoid)();
|
|
23
22
|
}
|
|
24
23
|
}]);
|
|
25
24
|
}();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kitchen-simulator",
|
|
3
|
-
"version": "1.1.1-test.
|
|
3
|
+
"version": "1.1.1-test.48",
|
|
4
4
|
"description": "It is a kitchen simulator.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -58,17 +58,16 @@
|
|
|
58
58
|
"redux"
|
|
59
59
|
],
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"
|
|
62
|
-
"react-
|
|
63
|
-
"prop-types": "^15.8.1",
|
|
61
|
+
"convert-units": "2.3.4",
|
|
62
|
+
"hoist-non-react-statics": "2.5.5",
|
|
64
63
|
"immutable": "3.8.2",
|
|
65
64
|
"immutablediff": "0.4.4",
|
|
66
65
|
"immutablepatch": "0.5.0",
|
|
67
|
-
"convert-units": "2.3.4",
|
|
68
|
-
"hoist-non-react-statics": "2.5.5",
|
|
69
66
|
"invariant": "^2.0.0",
|
|
70
67
|
"polylabel": "1.0.2",
|
|
71
|
-
"
|
|
68
|
+
"prop-types": "^15.8.1",
|
|
69
|
+
"react": ">=16.9 <19",
|
|
70
|
+
"react-dom": ">=16.9 <19"
|
|
72
71
|
},
|
|
73
72
|
"dependencies": {
|
|
74
73
|
"@sentry/react": "^9.10.1",
|
|
@@ -77,23 +76,17 @@
|
|
|
77
76
|
"camera-controls": "^2.8.5",
|
|
78
77
|
"dotenv": "^16.4.7",
|
|
79
78
|
"history": "4.10.1",
|
|
79
|
+
"localstorage-slim": "^1.3.0",
|
|
80
|
+
"nanoid": "^5.1.6",
|
|
80
81
|
"path-browserify": "^1.0.1",
|
|
81
82
|
"posthog-js": "^1.271.0",
|
|
82
83
|
"react-icons": "3.5.0",
|
|
83
84
|
"react-redux": "5.0.7",
|
|
84
85
|
"react-svg-pan-zoom": "^3.13.1",
|
|
85
86
|
"redux": "4.0.1",
|
|
86
|
-
"stream-browserify": "^3.0.0"
|
|
87
|
-
"localstorage-slim": "^1.3.0"
|
|
87
|
+
"stream-browserify": "^3.0.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"shortid": "2.2.14",
|
|
91
|
-
"polylabel": "1.0.2",
|
|
92
|
-
"convert-units": "2.3.4",
|
|
93
|
-
"immutable": "3.8.2",
|
|
94
|
-
"immutablediff": "0.4.4",
|
|
95
|
-
"immutablepatch": "0.5.0",
|
|
96
|
-
"prop-types": "^15.8.1",
|
|
97
90
|
"@babel/cli": "^7.28.3",
|
|
98
91
|
"@babel/core": "^7.28.4",
|
|
99
92
|
"@babel/preset-env": "^7.28.3",
|
|
@@ -105,10 +98,16 @@
|
|
|
105
98
|
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
|
106
99
|
"babel-plugin-transform-rename-import": "^2.3.0",
|
|
107
100
|
"const-version": "2.0.0",
|
|
101
|
+
"convert-units": "2.3.4",
|
|
108
102
|
"cross-env": "^5.2.0",
|
|
109
103
|
"css-loader": "*",
|
|
110
104
|
"file-loader": "6.2.0",
|
|
111
105
|
"html-webpack-plugin": "5.6.0",
|
|
106
|
+
"immutable": "3.8.2",
|
|
107
|
+
"immutablediff": "0.4.4",
|
|
108
|
+
"immutablepatch": "0.5.0",
|
|
109
|
+
"polylabel": "1.0.2",
|
|
110
|
+
"prop-types": "^15.8.1",
|
|
112
111
|
"react": "^16.9.0",
|
|
113
112
|
"react-container-dimensions": "1.4.1",
|
|
114
113
|
"react-dom": "16.9.0",
|