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

node-forge

Package Overview
Dependencies
Maintainers
3
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-forge - npm Package Compare versions

Comparing version 0.6.37 to 0.6.38

2

bower.json
{
"name": "forge",
"version": "0.6.37",
"version": "0.6.38",
"description": "JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.",

@@ -5,0 +5,0 @@ "moduleType": ["amd"],

@@ -385,2 +385,34 @@ (function() {

});
it('should convert "foo" to its UTF-16 representation', function() {
var result = UTIL.text.utf16.encode('foo');
ASSERT.equal(result.byteLength, 6);
ASSERT.equal(result[0], 102);
ASSERT.equal(result[1], 0);
ASSERT.equal(result[2], 111);
ASSERT.equal(result[3], 0);
ASSERT.equal(result[4], 111);
ASSERT.equal(result[5], 0);
});
it('should convert "foo" from its UTF-16 representation', function() {
var bytes = new Uint8Array([102, 0, 111, 0, 111, 0]);
var result = UTIL.text.utf16.decode(bytes);
ASSERT.equal(result, 'foo');
});
it('should convert "\ud83c\udc00" to its UTF-16 representation', function() {
var result = UTIL.text.utf16.encode('\ud83c\udc00');
ASSERT.equal(result.byteLength, 4);
ASSERT.equal(result[0], 60);
ASSERT.equal(result[1], 216);
ASSERT.equal(result[2], 0);
ASSERT.equal(result[3], 220);
});
it('should convert "\ud83c\udc00" from its UTF-16 representation', function() {
var bytes = new Uint8Array([60, 216, 0, 220]);
var result = UTIL.text.utf16.decode(bytes);
ASSERT.equal(result, '\ud83c\udc00');
});
});

@@ -387,0 +419,0 @@ }

{
"name": "node-forge",
"version": "0.6.37",
"version": "0.6.38",
"description": "JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.",

@@ -5,0 +5,0 @@ "homepage": "http://github.com/digitalbazaar/forge",

Sorry, the diff of this file is too big to display

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