@avidian/extras
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -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"; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35092
30
988
9