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

fus-ext

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fus-ext - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

7

changelog.md

@@ -0,1 +1,8 @@

v1.4.0
======
2016-08-08T13:50:24Z
Add `toString` method to `Uint8Array` instance, and `toBytes` method to `String` primitive.
v1.3.0

@@ -2,0 +9,0 @@ ======

2

package.json
{
"name": "fus-ext",
"version": "1.3.0",
"version": "1.4.0",
"description": "FutureScript Extension",

@@ -5,0 +5,0 @@ "keywords": [

@@ -15,3 +15,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {

return (_dotDot = dotDot(a))[b].apply(_dotDot, [a].concat(_toConsumableArray(c)));
};var format, insert, remove, matches, capitalize, split, stripTrailingNewline, ensureTrailingNewline;exports.format = format = function (str) {
};var format, insert, remove, matches, capitalize, split, stripTrailingNewline, ensureTrailingNewline, toBytes;exports.format = format = function (str) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {

@@ -120,2 +120,18 @@ args[_key - 1] = arguments[_key];

})();
};exports.toBytes = toBytes = function (str) {
return (function () {
var bytes, pos;str = encodeURIComponent(str);bytes = [];pos = 0;(0, _main.loop)(function () {
return (function () {
return pos < str.length ? (function () {
return str[pos] === "%" ? (function () {
bytes.push(parseInt(str.substr(pos + 1, 2), 16));pos = pos + 3;
})() : (function () {
bytes.push(str.charCodeAt(pos));pos = pos + 1;
})();
})() : (function () {
return _main["break"];
})();
})();
});bytes = new Uint8Array(bytes);return bytes;
})();
};exports.format = format;

@@ -128,2 +144,3 @@ exports.insert = insert;

exports.stripTrailingNewline = stripTrailingNewline;
exports.ensureTrailingNewline = ensureTrailingNewline;
exports.ensureTrailingNewline = ensureTrailingNewline;
exports.toBytes = toBytes;
"use strict";Object.defineProperty(exports, "__esModule", {
value: true
value: true
});
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; return arr2; } else { return Array.from(arr); } }
var _main = require("./main");
var $base64, toBase64;$base64 = require("./base64");exports.toBase64 = toBase64 = function (bytes) {
return (function () {
return $base64.fromByteArray(bytes);
})();
};exports.toBase64 = toBase64;
var dotDotCalc_573300145710716007 = function dotDotCalc_573300145710716007(dotDot, a, b, c) {
var _dotDot;
return (_dotDot = dotDot(a))[b].apply(_dotDot, [a].concat(_toConsumableArray(c)));
};var $base64, toBase64, toString;$base64 = require("./base64");exports.toBase64 = toBase64 = function (bytes) {
return (function () {
return $base64.fromByteArray(bytes);
})();
};exports.toString = toString = function (bytes) {
return (function () {
return decodeURIComponent(Array.from(bytes).map(function (m) {
return (function () {
return "%" + dotDotCalc_573300145710716007(_main.dotDot_573300145710716007, m, "format", [{ integerSize: 2, radix: 16 }]).toUpperCase();
})();
}).join(""));
})();
};exports.toBase64 = toBase64;
exports.toString = toString;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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