saml-encoder-decoder-js
Advanced tools
+4
-4
@@ -12,3 +12,3 @@ /* global Buffer */ | ||
| function encodeSamlRedirect(input, cb) { | ||
| if (input == null || input == "") { | ||
| if (input == null || input === '') { | ||
| return cb(new Error('Cannot encode null string')); | ||
@@ -27,3 +27,3 @@ } | ||
| function decodeSamlRedirect(encoded, cb) { | ||
| if (encoded == null || encoded == "") { | ||
| if (encoded == null || encoded === '') { | ||
| return cb(new Error('Cannot decode null string')); | ||
@@ -43,3 +43,3 @@ } | ||
| function encodeSamlPost(input, cb) { | ||
| if (input == null || input == "") { | ||
| if (input == null || input === '') { | ||
| return cb(new Error('Cannot encode null string')); | ||
@@ -51,3 +51,3 @@ } | ||
| function decodeSamlPost(encoded, cb) { | ||
| if (encoded == null || encoded == "") { | ||
| if (encoded == null || encoded === '') { | ||
| return cb(new Error('Cannot decode null string')); | ||
@@ -54,0 +54,0 @@ } |
+6
-7
| { | ||
| "name": "saml-encoder-decoder-js", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2", | ||
| "description": "Node.js module for encoding and decoding SAML request and response payloads for redirect or POST bindings", | ||
| "main": "index.js", | ||
| "scripts": { | ||
| "test": "./node_modules/mocha/bin/mocha" | ||
| "test": "mocha" | ||
| }, | ||
| "author": "Michael Oryl", | ||
| "license": "ISC", | ||
| "dependencies": { | ||
| }, | ||
| "license": "GPL-2.0-only", | ||
| "dependencies": {}, | ||
| "devDependencies": { | ||
| "async": "^1.5.2", | ||
| "mocha": "^2.4.5", | ||
| "should": "^8.2.1" | ||
| "chai": "^4.3.7", | ||
| "mocha": "^10.1.0" | ||
| }, | ||
@@ -18,0 +17,0 @@ "repository": { |
+6
-6
@@ -14,3 +14,3 @@ # saml-encoder-decoder-js | ||
| var saml = require('saml'); | ||
| var saml = require('saml-encoder-decoder-js'); | ||
@@ -23,3 +23,3 @@ At that point, you can pass your SAML request or response XML to the redirect or POST binding encoding routines. | ||
| } | ||
| } | ||
| }); | ||
@@ -30,3 +30,3 @@ saml.encodeSamlPost(xml, function(err, encoded) { | ||
| } | ||
| } | ||
| }); | ||
@@ -39,3 +39,3 @@ If, on the other hand, you need to decode previously encoded data, you would handle that like this: | ||
| } | ||
| } | ||
| }); | ||
@@ -46,3 +46,3 @@ saml.decodeSamlPost(xml, function(err, xml) { | ||
| } | ||
| } | ||
| }); | ||
@@ -53,2 +53,2 @@ ## Demo code | ||
| The unit tests in the `test` folder will also provide insight into how the code works. | ||
| The unit tests in the `test` folder will also provide insight into how the code works. |
+1
-1
@@ -1,2 +0,2 @@ | ||
| var should = require('should'); | ||
| var should = require('chai').should(); | ||
| var saml = require('../'); | ||
@@ -3,0 +3,0 @@ |
Sorry, the diff of this file is not supported yet
Copyleft License
LicenseCopyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
LicenseA license not known to be considered permissive was found.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Copyleft License
LicenseCopyleft license information was found.
Found 1 instance in 1 package
Mixed license
LicensePackage contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
LicenseA license not known to be considered permissive was found.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2
-33.33%49
2.08%28690
-0.32%9
-10%