Skip to content

Commit

Permalink
Remove module redundancy for camel case implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tngan committed Nov 15, 2018
1 parent d81b588 commit 769478d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"dependencies": {
"@passify/xml-encryption": "^0.11.1",
"@passify/xsd-schema-validator": "^0.7.1",
"camelcase": "^4.0.0",
"deflate-js": "^0.2.3",
"lodash": "^4.17.10",
"node-forge": "^0.7.5",
Expand All @@ -46,7 +45,6 @@
"xpath": "^0.0.27"
},
"devDependencies": {
"@types/camelcase": "^0.0.30",
"@types/lodash": "^4.14.112",
"@types/node": "^7.0.67",
"@types/node-forge": "^0.7.4",
Expand Down
5 changes: 2 additions & 3 deletions src/libsaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ import { DOMParser } from 'xmldom';
import utility from './utility';
import { algorithms, wording, namespace } from './urn';
import { select } from 'xpath';
import * as camel from 'camelcase';
import { MetadataInterface } from './metadata';
import { isObject, isUndefined, includes, flattenDeep } from 'lodash';
import { isObject, isUndefined, includes, flattenDeep, camelCase } from 'lodash';
import * as nrsa from 'node-rsa';
import { SignedXml, FileKeyInfo } from 'xml-crypto';
import * as xmlenc from '@passify/xml-encryption';
Expand Down Expand Up @@ -225,7 +224,7 @@ const libSaml = () => {
* @return {string}
*/
function tagging(prefix: string, content: string): string {
const camelContent = camel(content);
const camelContent = camelCase(content);
return prefix + camelContent.charAt(0).toUpperCase() + camelContent.slice(1);
}

Expand Down

0 comments on commit 769478d

Please sign in to comment.