@01-edu/shared 1.1.7 → 1.1.8

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.
Files changed (2) hide show
  1. package/attrs-defs.js +0 -20
  2. package/package.json +1 -1
package/attrs-defs.js CHANGED
@@ -294,11 +294,6 @@ types.autoRejectWhereConditions = Object.fromEntries(
294
294
  description: `Condition relative to ${breath(
295
295
  parameter,
296
296
  )} of the candidate.`,
297
- check: condition => {
298
- if (isntObjectOrIsEmpty(condition)) {
299
- throw Error('expect to contain a comparison.')
300
- }
301
- },
302
297
  type: {
303
298
  '<': Literal(shouldFailUnder, {
304
299
  label: 'is lower than',
@@ -322,11 +317,6 @@ attrs.autoRejectWhere = {
322
317
  label: autoRejectWhereLabel,
323
318
  instruction: 'List of conditions to automatically reject an application',
324
319
  type: types.autoRejectWhereConditions,
325
- check: autoRejectWhere => {
326
- if (isntObjectOrIsEmpty(autoRejectWhere)) {
327
- throw Error('expect to contain at least one condition.')
328
- }
329
- },
330
320
  },
331
321
  }
332
322
 
@@ -351,11 +341,6 @@ types.autoValidateWhereConditions = Object.fromEntries(
351
341
  description: `Condition relative to ${breath(
352
342
  parameter,
353
343
  )} of the candidate.`,
354
- check: condition => {
355
- if (isntObjectOrIsEmpty(condition)) {
356
- throw Error('expect to contain at least one condition.')
357
- }
358
- },
359
344
  type: {
360
345
  '>': Literal(shouldSucceedFrom, {
361
346
  label: 'is bigger than',
@@ -379,11 +364,6 @@ attrs.autoValidateWhere = {
379
364
  label: autoValidateWhereLabel,
380
365
  instruction: 'List of conditions to automatically accept an application',
381
366
  type: types.autoValidateWhereConditions,
382
- check: autoValidateWhere => {
383
- if (isntObjectOrIsEmpty(autoValidateWhere)) {
384
- throw Error('expect to contain at least one condition.')
385
- }
386
- },
387
367
  },
388
368
  }
389
369
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01-edu/shared",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "scripts": {