Socket
Socket
Sign inDemoInstall

@avidian/extras

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avidian/extras - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

dist/Array.d.ts

0

.eslintrc.js

@@ -0,0 +0,0 @@ module.exports = {

@@ -0,0 +0,0 @@ module.exports = {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

2

dist/index.d.ts

@@ -24,3 +24,3 @@ import 'core-js';

interface Object {
serialize(): string;
serializeAsJSON(): string;
except<T = any>(keys: string[]): T;

@@ -27,0 +27,0 @@ getOnly<T = any>(keys: string[]): T;

@@ -0,0 +0,0 @@ "use strict";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var errors = [];
if (typeof Object.prototype.serialize === 'undefined') {
Object.defineProperty(Object.prototype, 'serialize', {
if (typeof Object.prototype.serializeAsJSON === 'undefined') {
Object.defineProperty(Object.prototype, 'serializeAsJSON', {
enumerable: false,

@@ -15,3 +15,3 @@ configurable: false,

else {
errors.push('serialize');
errors.push('serializeAsJSON');
}

@@ -18,0 +18,0 @@ if (typeof Object.prototype.except) {

@@ -0,0 +0,0 @@ "use strict";

{
"name": "@avidian/extras",
"version": "0.0.4",
"version": "0.0.5",
"private": false,

@@ -30,2 +30,3 @@ "description": "Extra features on native objects.",

"@types/mocha": "^8.2.2",
"@types/node": "^16.3.0",
"chai": "^4.2.0",

@@ -32,0 +33,0 @@ "mocha": "^8.2.1",

@@ -0,0 +0,0 @@ # @avidianity/extras

@@ -0,0 +0,0 @@ import { flattenDeep } from 'lodash';

@@ -0,0 +0,0 @@ import dayjs from 'dayjs';

@@ -0,0 +0,0 @@ const errors: string[] = [];

@@ -28,3 +28,3 @@ import 'core-js';

interface Object {
serialize(): string;
serializeAsJSON(): string;
except<T = any>(keys: string[]): T;

@@ -31,0 +31,0 @@ getOnly<T = any>(keys: string[]): T;

const errors: string[] = [];
if (typeof Object.prototype.serialize === 'undefined') {
Object.defineProperty(Object.prototype, 'serialize', {
if (typeof Object.prototype.serializeAsJSON === 'undefined') {
Object.defineProperty(Object.prototype, 'serializeAsJSON', {
enumerable: false,

@@ -13,3 +13,3 @@ configurable: false,

} else {
errors.push('serialize');
errors.push('serializeAsJSON');
}

@@ -16,0 +16,0 @@

@@ -0,0 +0,0 @@ import dayjs from 'dayjs';

@@ -0,0 +0,0 @@ import '../index';

@@ -0,0 +0,0 @@ import { assert } from 'chai';

@@ -0,0 +0,0 @@ import '../index';

@@ -8,3 +8,3 @@ import '../index';

assert(typeof data.serialize() === 'string');
assert(typeof data.serializeAsJSON() === 'string');
});

@@ -11,0 +11,0 @@

@@ -0,0 +0,0 @@ import '../index';

@@ -0,0 +0,0 @@ {

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