@openaddresses/batch-schema 1.0.1 → 2.3.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openaddresses/batch-schema",
3
3
  "root": true,
4
- "version": "1.0.1",
4
+ "version": "2.3.0",
5
5
  "description": "Strongly Validated JSON Schema support for address",
6
6
  "repository": "git@github.com:openaddresses/batch",
7
7
  "author": "ingalls <nick@ingalls.ca>",
@@ -22,10 +22,6 @@
22
22
  "tape": "^5.3.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@babel/eslint-parser": "^7.15.7",
26
- "@babel/eslint-plugin": "^7.14.5",
27
- "@babel/plugin-syntax-class-properties": "^7.12.13",
28
- "@babel/preset-env": "^7.15.6",
29
25
  "eslint": "^8.0.1",
30
26
  "eslint-plugin-node": "^11.0.0"
31
27
  }
package/routes/schema.js CHANGED
@@ -1,3 +1,4 @@
1
+ 'use strict';
1
2
  const Err = require('../lib/error');
2
3
 
3
4
  async function router(schema) {
@@ -1,3 +1,4 @@
1
+ 'use strict';
1
2
  const test = require('tape');
2
3
  const express = require('express');
3
4
  const { Schema } = require('../');
@@ -51,6 +52,12 @@ test('GET: api/schema?method=FAKE', async (t) => {
51
52
  status: 400,
52
53
  message: 'validation error',
53
54
  messages: [{
55
+ keyword: 'enum',
56
+ dataPath: '.method',
57
+ schemaPath: '#/properties/method/enum',
58
+ params: {
59
+ allowedValues: ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH']
60
+ },
54
61
  message: 'should be equal to one of the allowed values'
55
62
  }]
56
63
  });
@@ -1,3 +1,4 @@
1
+ 'use strict';
1
2
  const fs = require('fs');
2
3
  const path = require('path');
3
4
  const test = require('tape');
package/.babelrc DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "presets": ["@babel/env"],
3
- "plugins": [
4
- "@babel/plugin-syntax-class-properties"
5
- ]
6
- }
7
-