New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

saml-encoder-decoder-js

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

saml-encoder-decoder-js - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

index.js

@@ -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 @@ }

{
"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": {

@@ -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,2 +0,2 @@

var should = require('should');
var should = require('chai').should();
var saml = require('../');

@@ -3,0 +3,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