Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appc-connector-utils

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appc-connector-utils - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

5

lib/model/api.js

@@ -0,1 +1,2 @@

const pluralize = require('pluralize')
const dataValidator = require('../tools/dataValidator')

@@ -46,4 +47,6 @@ const metadataSchema = require('./metadataSchema')

}
const name = parent.name.split(namespaceDelimiter).pop()
return {
nameOnly: parent.name.split(namespaceDelimiter).pop(),
nameOnly: name,
nameOnlyPlural: pluralize(name),
withNamespace: parent.name

@@ -50,0 +53,0 @@ }

{
"name": "appc-connector-utils",
"version": "0.1.0",
"version": "0.1.1",
"description": "Utilities for Arrow Connectors",

@@ -34,3 +34,4 @@ "main": "./lib/index.js",

"dependencies": {
"joi": "^10.2.0"
"joi": "^10.2.0",
"pluralize": "^4.0.0"
},

@@ -37,0 +38,0 @@ "devDependencies": {

@@ -84,2 +84,3 @@ const Arrow = require('arrow')

t.equal(name1Result.nameOnly, 'myModel1')
t.equal(name1Result.nameOnlyPlural, 'myModel1S')
t.equal(name1Result.withNamespace, name1)

@@ -89,2 +90,3 @@

t.equal(name2Result.nameOnly, name2)
t.equal(name2Result.nameOnlyPlural, name2 + 'S')
t.equal(name2Result.withNamespace, name2)

@@ -94,2 +96,3 @@

t.equal(name3Result.nameOnly, name3)
t.equal(name3Result.nameOnlyPlural, name3 + 'S')
t.equal(name3Result.withNamespace, name3)

@@ -99,2 +102,3 @@

t.equal(name4Result.nameOnly, 'myModel4')
t.equal(name4Result.nameOnlyPlural, 'myModel4S')
t.equal(name4Result.withNamespace, name4)

@@ -104,2 +108,3 @@

t.equal(name5Result.nameOnly, 'myModel5')
t.equal(name5Result.nameOnlyPlural, 'myModel5S')
t.equal(name5Result.withNamespace, name5)

@@ -106,0 +111,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc