@thepalaceproject/circulation-admin 1.34.3 → 1.35.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/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  "test-jest": "jest --verbose --roots tests/jest",
30
30
  "test-jest-file": "jest --verbose",
31
31
  "dev": "webpack --watch --progress --config webpack.dev.config",
32
- "dev-server": "webpack serve --progress --hot --config webpack.dev-server.config",
32
+ "dev-server": "dotenv -c -- webpack serve --progress --hot --config webpack.dev-server.config",
33
33
  "dev-test-axe": "TEST_AXE=true npm run dev",
34
34
  "prod": "webpack --progress --config webpack.prod.config",
35
35
  "build-docs": "typedoc --tsconfig tsconfig.json src"
@@ -50,7 +50,7 @@
50
50
  "numeral": "^2.0.6",
51
51
  "opds-feed-parser": "0.0.17",
52
52
  "prop-types": "^15.7.2",
53
- "qs": "^6.2.0",
53
+ "qs": "^6.14.1",
54
54
  "react": "^16.8.6",
55
55
  "react-beautiful-dnd": "^2.3.1",
56
56
  "react-bootstrap": "^0.32.4",
@@ -90,8 +90,9 @@
90
90
  "chai": "4.2.0",
91
91
  "clean-webpack-plugin": "^2.0.1",
92
92
  "colors-cli": "^1.0.27",
93
- "copy-webpack-plugin": "6.4.0",
93
+ "copy-webpack-plugin": "13.0.1",
94
94
  "css-loader": "^6.7.2",
95
+ "dotenv-cli": "^11.0.0",
95
96
  "enzyme": "^3.11.0",
96
97
  "enzyme-adapter-react-16": "^1.15.6",
97
98
  "eslint": "^7.0.0",
@@ -115,7 +116,7 @@
115
116
  "mini-css-extract-plugin": "1.6.0",
116
117
  "mocha": "^10.2.0",
117
118
  "msw": "^2.7.3",
118
- "nightwatch": "^3.2.0",
119
+ "nightwatch": "^3.14.0",
119
120
  "prettier": "2.1.2",
120
121
  "react-axe": "^3.3.0",
121
122
  "react-test-renderer": "^16.14.0",
@@ -151,5 +152,5 @@
151
152
  "*.{js,jsx,ts,tsx,css,md}": "prettier --write",
152
153
  "*.{js,css,md}": "prettier --write"
153
154
  },
154
- "version": "1.34.3"
155
+ "version": "1.35.0"
155
156
  }
@@ -186,7 +186,12 @@ describe("BookDetails", () => {
186
186
 
187
187
  const { getByRole, getByText, queryByRole } = renderWithProviders(
188
188
  <BookDetailsEditor
189
- bookData={{ id: "id", title: "title", unsuppressPerLibraryLink }}
189
+ bookData={{
190
+ id: "id",
191
+ title: "title",
192
+ unsuppressPerLibraryLink,
193
+ visibilityStatus: "manually-suppressed",
194
+ }}
190
195
  bookUrl="url"
191
196
  csrfToken="token"
192
197
  canSuppress={true}
@@ -36,7 +36,7 @@ const devAssetsPublicPath = "/webpack-dev-assets/";
36
36
  * @returns The webpack configuration.
37
37
  */
38
38
  module.exports = (env) => {
39
- const { backend } = env;
39
+ const backend = env?.backend ?? process.env.BACKEND;
40
40
 
41
41
  if (!backend) {
42
42
  console.error("Please specify the URL of a Circulation Manager back-end.");