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

@jymfony/util

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jymfony/util - npm Package Compare versions

Comparing version 0.1.0-alpha.3 to 0.1.0-alpha.4

lib/String/wordwrap.js

1

index.js

@@ -30,2 +30,3 @@ require('./lib/Error/trigger_deprecated');

require('./lib/String/version_compare');
require('./lib/String/wordwrap');

@@ -32,0 +33,0 @@ require('./lib/Regex/quote');

20

lib/Object/clone.js

@@ -5,5 +5,19 @@ 'use strict';

const primitives = [ Number, String, Boolean ];
global.__jymfony.clone = function clone(object) {
if (! isObject(object)) {
throw new InvalidArgumentException('Cannot clone a non-object');
}
let deepClone = function (object) {
const surrogateCtor = function () { };
surrogateCtor.prototype = object.constructor.prototype;
const target = new surrogateCtor();
for (let k of Object.keys(object)) {
target[k] = object[k];
}
return target;
};
global.__jymfony.deepClone = function deepClone(object) {
if (! object ) {

@@ -40,3 +54,1 @@ return object;

};
global.__jymfony.deepClone = deepClone;
{
"name": "@jymfony/util",
"version": "0.1.0-alpha.3",
"version": "0.1.0-alpha.4",
"description": "Jymfony util functions",

@@ -20,3 +20,3 @@ "main": "index.js",

"dependencies": {
"@jymfony/exceptions": "0.1.0-alpha.3"
"@jymfony/exceptions": "0.1.0-alpha.4"
},

@@ -23,0 +23,0 @@ "devDependencies": {

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