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

@burger-editor/frozen-patty

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@burger-editor/frozen-patty - npm Package Compare versions

Comparing version 0.7.2 to 0.7.3

2

lib/frozen-patty.d.ts

@@ -16,3 +16,3 @@ export default class FrozenPatty {

merge(data: FrozenPattyData): this;
toJSON(): FrozenPattyData;
toJSON(filtering?: boolean): FrozenPattyData;
toHTML(): string;

@@ -19,0 +19,0 @@ toDOM(): Element;

@@ -25,3 +25,3 @@ "use strict";

FrozenPatty.prototype.merge = function (data) {
var currentData = this.toJSON();
var currentData = this.toJSON(false);
var newData = Object.assign(currentData, data);

@@ -31,4 +31,6 @@ this._dom = set_1.default(this._dom, newData, this._attr, this._typeConvert, this._filter);

};
FrozenPatty.prototype.toJSON = function () {
return get_1.default(this._dom, this._attr, this._typeConvert, this._filter);
FrozenPatty.prototype.toJSON = function (filtering) {
if (filtering === void 0) { filtering = true; }
var filter = filtering ? this._filter : undefined;
return get_1.default(this._dom, this._attr, this._typeConvert, filter);
};

@@ -35,0 +37,0 @@ FrozenPatty.prototype.toHTML = function () {

@@ -1,2 +0,2 @@

import { Filter, PrimitiveDatum } from './frozen-patty';
import { Filter } from './frozen-patty';
/**

@@ -9,2 +9,2 @@ * Get value from an element

*/
export default function (el: Element, attr: string, typeConvert: boolean, filter?: Filter): [string, PrimitiveDatum, boolean][];
export default function (el: Element, attr: string, typeConvert: boolean, filter?: Filter): [string, string | number | boolean | null | undefined, boolean][];

@@ -31,4 +31,4 @@ import FrozenPatty, { Filter, FrozenPattyOptions, PrimitiveDatum } from './frozen-patty';

*/
function getValue(el: Element, name: string, typeConvert?: boolean, attr?: string, filter?: Filter): string | number | boolean | PrimitiveDatum[] | null | undefined;
function getValue(el: Element, name: string, typeConvert?: boolean, attr?: string, filter?: Filter): string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
}
export default frozenPatty;

@@ -6,3 +6,3 @@ import { FrozenPattyData, PrimitiveDatum } from './frozen-patty';

export declare function arrayToHash(kvs: [keyof FrozenPattyData, PrimitiveDatum, boolean][]): {
[index: string]: string | number | boolean | PrimitiveDatum[] | null | undefined;
[index: string]: string | number | boolean | (string | number | boolean | null | undefined)[] | null | undefined;
};
{
"name": "@burger-editor/frozen-patty",
"version": "0.7.2",
"version": "0.7.3",
"description": "Pure HTML to JSON converter that not use template engine.",

@@ -26,15 +26,15 @@ "main": "lib/index.js",

"devDependencies": {
"ava": "^0.24.0",
"browser-env": "^3.2.4",
"coveralls": "^3.0.0",
"ava": "^0.25.0",
"browser-env": "^3.2.5",
"coveralls": "^3.0.1",
"del": "^3.0.0",
"eslint": "^4.13.1",
"eslint": "^4.19.1",
"gulp": "^3.9.1",
"gulp-ava": "^0.18.0",
"gulp-typescript": "^3.2.3",
"nyc": "^11.4.1",
"run-sequence": "^2.2.0",
"tslint": "^5.8.0",
"typescript": "^2.6.2"
"gulp-ava": "^0.19.0",
"gulp-typescript": "^4.0.2",
"nyc": "^11.8.0",
"run-sequence": "^2.2.1",
"tslint": "^5.10.0",
"typescript": "^2.8.3"
}
}
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