Skip to content

Commit f6d797c

Browse files
committed
deps: remove nano-prop dependency
This is now built in to help-gen.
1 parent 8ceb9df commit f6d797c

33 files changed

+31
-45
lines changed

lib/validator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const Builder = require('@helpdotcom/build-ast')
4-
const Prop = require('@helpdotcom/nano-prop')
4+
const Prop = require('../prop')
55
const utils = require('../utils')
66
const toCode = require('../to-code')
77
const Validator = require('./validator')

lib/validator/types/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Define first since ArrayType and ObjectType have circular dependencies on it.
44
exports.getCheck = getCheck
55

6-
const Prop = require('@helpdotcom/nano-prop')
6+
const Prop = require('../../prop')
77
const ArrayType = require('./array')
88
const BaseType = require('./base')
99
const EmailType = require('./email')

lib/validator/types/object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const Builder = require('@helpdotcom/build-ast')
4-
const Prop = require('@helpdotcom/nano-prop')
4+
const Prop = require('../../prop')
55
const Base = require('./base')
66
const utils = require('../../utils')
77
const OP = Builder.objectPath

lib/validator/validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const Builder = require('@helpdotcom/build-ast')
4-
const Prop = require('@helpdotcom/nano-prop')
4+
const Prop = require('../prop')
55
const utils = require('../utils')
66
const is = require('../is-helper')
77
const TYPES = require('./types')

package-lock.json

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
},
1616
"dependencies": {
1717
"@helpdotcom/build-ast": "^2.3.1",
18-
"@helpdotcom/nano-prop": "^6.6.2",
1918
"acorn": "~2.7.0",
2019
"escodegen": "~1.8.0",
2120
"github-slugger": "~1.0.1",

test/common.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ if (require.main === module) {
1010
const assert = require('assert')
1111
const path = require('path')
1212
const Module = require('module').Module
13-
const Prop = require('@helpdotcom/nano-prop')
14-
const {ModelManager, Validator} = require('../')
13+
const {ModelManager, Validator, Prop} = require('../')
1514
const dir = __dirname
1615
var count = 0
1716

test/model/manager.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
'use strict'
22

33
const test = require('tap').test
4-
const Prop = require('@helpdotcom/nano-prop')
5-
const {ModelManager} = require('../../')
4+
const {ModelManager, Prop} = require('../../')
65

76
const ALREADY_DEFINED_ERROR = 'Model "Visitor" has already been defined'
87
const INVALID_NAME_ERROR = 'name is required and must be a valid identifier'

test/model/types/array.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const Prop = require('@helpdotcom/nano-prop')
3+
const {Prop} = require('../../../')
44
const test = require('tap').test
55
const common = require('../../common')
66
const compile = common.compileManager

test/model/types/object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const Prop = require('@helpdotcom/nano-prop')
3+
const {Prop} = require('../../../')
44
const test = require('tap').test
55
const common = require('../../common')
66
const compile = common.compileManager

0 commit comments

Comments
 (0)