Comparing version 0.16.7-0 to 0.16.7-beta.0
@@ -1,1 +0,1 @@ | ||
"use strict";function e(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function t(t){if(Array.isArray(t))return e(t)}function r(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function o(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}function i(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function s(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e){return t(e)||s(e)||l(e)||u()}function c(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function l(t,r){if(!t)return;if(typeof t==="string")return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}var f=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var h=function(e,t){for(var r in t)f(e,r,{get:t[r],enumerable:!0})},d=function(e,t,r,n){var o=true,i=false,s=undefined;if(t&&typeof t=="object"||typeof t=="function")try{var u=function(){var o=c.value;!y.call(e,o)&&o!==r&&f(e,o,{get:function(){return t[o]},enumerable:!(n=p(t,o))||n.enumerable})};for(var a=m(t)[Symbol.iterator](),c;!(o=(c=a.next()).done);o=true)u()}catch(e){i=true;s=e}finally{try{if(!o&&a.return!=null){a.return()}}finally{if(i){throw s}}}return e};var v=function(e){return d(f({},"__esModule",{value:!0}),e)};var b={};h(b,{default:function(){return M}});module.exports=v(b);var g={name:"posthtml",version:"0.16.7-0",description:"HTML/XML processor",keywords:["html","xml","postproccessor","parser","transform","transformations","manipulation","preprocessor","processor"],main:"./dist/index.js",module:"./dist/index.mjs",browser:"./dist/index.global.js",types:"./types/posthtml.d.ts",exports:{".":{import:"./dist/index.mjs",require:"./dist/index.js"}},engines:{node:">=12.0.0"},dependencies:{"posthtml-parser":"^0.11.0","posthtml-render":"^3.0.0"},devDependencies:{"@commitlint/cli":"^17.8.0","@commitlint/config-angular":"^17.8.0","@swc/core":"^1.3.93","@typescript-eslint/eslint-plugin":"^6.8.0","@typescript-eslint/parser":"^6.8.0","@vitest/coverage-v8":"^0.34.6",eslint:"^8.51.0",husky:"^8.0.3","jsdoc-to-markdown":"^8.0.0","lint-staged":"^15.0.2",tsup:"^7.2.0",typescript:"^5.2.2",vitest:"^0.34.6"},scripts:{build:"rm -rf dist && tsup src/*.ts --format esm,cjs,iife --sourcemap --minify",prepare:"husky install && npm run build",test:"vitest run --coverage","docs:api":"jsdoc2md lib/api.js > docs/api.md","docs:core":"jsdoc2md lib/index.js > docs/core.md",lint:"eslint . --ext .ts"},author:"Ivan Voischev <voischev.ivan@ya.ru>",contributors:[{name:"Ivan Voischev",email:"voischev.ivan@ya.ru"},{name:"Ivan Demidov",email:"scrum@list.ru"}],homepage:"https://posthtml.org",repository:"https://github.com/posthtml/posthtml.git",bugs:"https://github.com/posthtml/posthtml/issues",license:"MIT"};function j(){this.walk=w,this.match=A}function w(e){return O(this,e)}function A(e,t){return Array.isArray(e)?O(this,function(r){for(var n=0;n<e.length;n++)if(k(e[n],r))return t(r);return r}):O(this,function(r){return k(e,r)?t(r):r})}function O(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]=O(t(e[r]),t);else e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"content")&&O(e.content,t);return e}function k(e,t){if(i(e,RegExp)){if(typeof t=="object")return!1;if(typeof t=="string")return e.test(t)}return(typeof e==="undefined"?"undefined":c(e))!=(typeof t==="undefined"?"undefined":c(t))?!1:typeof e!="object"||e===null?e===t:Array.isArray(e)?e.every(function(e){return[].some.call(t,function(t){return k(e,t)})}):Object.keys(e).every(function(r){var n=t[r],o=e[r];return typeof o=="object"&&o!==null&&n!==null?k(o,n):typeof o=="boolean"?o!==(n==null):n===o})}var x=require("posthtml-parser"),S=require("posthtml-render"),P=x.parser,I=S.render,E=/*#__PURE__*/function(){function e(t){r(this,e);this.version=g.version,this.name=g.name,this.plugins=typeof t=="function"?[t]:t||[],this.source="",this.messages=[],this.parser=P,this.render=I,j.call(this)}o(e,[{key:"use",value:function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}var n;return(n=this.plugins).push.apply(n,a(t)),this}},{key:"process",value:function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var r=this;if(this.options=t,this.source=e,t.parser&&(P=this.parser=t.parser),t.render&&(I=this.render=t.render),e=t.skipParse?e||[]:P(e,t),e=[].concat(e),t.sync===!0)return this.plugins.forEach(function(n,o){T(e,r);var i;if(n.length===2||q(i=n(e)))throw new Error("Can’t process contents in sync mode because of async plugin: ".concat(n.name));o!==r.plugins.length-1&&!t.skipParse&&(e=[].concat(e)),e=i||e}),D(I,e);var n=0,o=function(e,i){var s=function r(r){return r&&!t.skipParse&&(r=[].concat(r)),o(r||e,i)};if(T(e,r),r.plugins.length<=n){i(null,e);return}var u=r.plugins[n++];if(u.length===2){u(e,function(e,t){if(e)return i(e);s(t)});return}var a=null,c=C(function(){return u(e)},function(e){return a=e,e});if(a){i(a);return}if(q(c)){c.then(s).catch(i);return}s(c)};return new Promise(function(t,r){o(e,function(e,n){e?r(e):t(D(I,n))})})}}]);return e}(),M=function(e){return new E(e)};function T(e,t){typeof e=="object"&&(e=Object.assign(e,t))}function q(e){return!!e&&typeof e.then=="function"}function C(e,t){try{return e()}catch(e){t(e)}}function D(e,t){return{get html(){return e(t,t.options)},tree:t,messages:t.messages}}//# sourceMappingURL=index.js.map | ||
"use strict";function e(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function t(t){if(Array.isArray(t))return e(t)}function r(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||false;n.configurable=true;if("value"in n)n.writable=true;Object.defineProperty(e,n.key,n)}}function o(e,t,r){if(t)n(e.prototype,t);if(r)n(e,r);return e}function i(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function s(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(e){return t(e)||s(e)||l(e)||u()}function c(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function l(t,r){if(!t)return;if(typeof t==="string")return e(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}var f=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var h=function(e,t){for(var r in t)f(e,r,{get:t[r],enumerable:!0})},d=function(e,t,r,n){var o=true,i=false,s=undefined;if(t&&typeof t=="object"||typeof t=="function")try{var u=function(){var o=c.value;!y.call(e,o)&&o!==r&&f(e,o,{get:function(){return t[o]},enumerable:!(n=p(t,o))||n.enumerable})};for(var a=m(t)[Symbol.iterator](),c;!(o=(c=a.next()).done);o=true)u()}catch(e){i=true;s=e}finally{try{if(!o&&a.return!=null){a.return()}}finally{if(i){throw s}}}return e};var v=function(e){return d(f({},"__esModule",{value:!0}),e)};var b={};h(b,{default:function(){return M}});module.exports=v(b);var g={name:"posthtml",version:"0.16.7-beta.0",description:"HTML/XML processor",keywords:["html","xml","postproccessor","parser","transform","transformations","manipulation","preprocessor","processor"],main:"./dist/index.js",module:"./dist/index.mjs",browser:"./dist/index.global.js",types:"./types/posthtml.d.ts",exports:{".":{import:"./dist/index.mjs",require:"./dist/index.js"}},engines:{node:">=12.0.0"},dependencies:{"posthtml-parser":"^0.11.0","posthtml-render":"^3.0.0"},devDependencies:{"@commitlint/cli":"^17.8.0","@commitlint/config-angular":"^17.8.0","@swc/core":"^1.3.93","@typescript-eslint/eslint-plugin":"^6.8.0","@typescript-eslint/parser":"^6.8.0","@vitest/coverage-v8":"^0.34.6",eslint:"^8.51.0",husky:"^8.0.3","jsdoc-to-markdown":"^8.0.0","lint-staged":"^15.0.2",tsup:"^7.2.0",typescript:"^5.2.2",vitest:"^0.34.6"},scripts:{build:"rm -rf dist && tsup src/*.ts --format esm,cjs,iife --sourcemap --minify",prepare:"husky install && npm run build",test:"vitest run --coverage","docs:api":"jsdoc2md lib/api.js > docs/api.md","docs:core":"jsdoc2md lib/index.js > docs/core.md",lint:"eslint . --ext .ts"},author:"Ivan Voischev <voischev.ivan@ya.ru>",contributors:[{name:"Ivan Voischev",email:"voischev.ivan@ya.ru"},{name:"Ivan Demidov",email:"scrum@list.ru"}],homepage:"https://posthtml.org",repository:"https://github.com/posthtml/posthtml.git",bugs:"https://github.com/posthtml/posthtml/issues",license:"MIT"};function j(){this.walk=w,this.match=A}function w(e){return O(this,e)}function A(e,t){return Array.isArray(e)?O(this,function(r){for(var n=0;n<e.length;n++)if(k(e[n],r))return t(r);return r}):O(this,function(r){return k(e,r)?t(r):r})}function O(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]=O(t(e[r]),t);else e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"content")&&O(e.content,t);return e}function k(e,t){if(i(e,RegExp)){if(typeof t=="object")return!1;if(typeof t=="string")return e.test(t)}return(typeof e==="undefined"?"undefined":c(e))!=(typeof t==="undefined"?"undefined":c(t))?!1:typeof e!="object"||e===null?e===t:Array.isArray(e)?e.every(function(e){return[].some.call(t,function(t){return k(e,t)})}):Object.keys(e).every(function(r){var n=t[r],o=e[r];return typeof o=="object"&&o!==null&&n!==null?k(o,n):typeof o=="boolean"?o!==(n==null):n===o})}var x=require("posthtml-parser"),S=require("posthtml-render"),P=x.parser,I=S.render,E=/*#__PURE__*/function(){function e(t){r(this,e);this.version=g.version,this.name=g.name,this.plugins=typeof t=="function"?[t]:t||[],this.source="",this.messages=[],this.parser=P,this.render=I,j.call(this)}o(e,[{key:"use",value:function e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++){t[r]=arguments[r]}var n;return(n=this.plugins).push.apply(n,a(t)),this}},{key:"process",value:function e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};var r=this;if(this.options=t,this.source=e,t.parser&&(P=this.parser=t.parser),t.render&&(I=this.render=t.render),e=t.skipParse?e||[]:P(e,t),e=[].concat(e),t.sync===!0)return this.plugins.forEach(function(n,o){T(e,r);var i;if(n.length===2||q(i=n(e)))throw new Error("Can’t process contents in sync mode because of async plugin: ".concat(n.name));o!==r.plugins.length-1&&!t.skipParse&&(e=[].concat(e)),e=i||e}),D(I,e);var n=0,o=function(e,i){var s=function r(r){return r&&!t.skipParse&&(r=[].concat(r)),o(r||e,i)};if(T(e,r),r.plugins.length<=n){i(null,e);return}var u=r.plugins[n++];if(u.length===2){u(e,function(e,t){if(e)return i(e);s(t)});return}var a=null,c=C(function(){return u(e)},function(e){return a=e,e});if(a){i(a);return}if(q(c)){c.then(s).catch(i);return}s(c)};return new Promise(function(t,r){o(e,function(e,n){e?r(e):t(D(I,n))})})}}]);return e}(),M=function(e){return new E(e)};function T(e,t){typeof e=="object"&&(e=Object.assign(e,t))}function q(e){return!!e&&typeof e.then=="function"}function C(e,t){try{return e()}catch(e){t(e)}}function D(e,t){return{get html(){return e(t,t.options)},tree:t,messages:t.messages}}//# sourceMappingURL=index.js.map |
{ | ||
"name": "posthtml", | ||
"version": "0.16.7-0", | ||
"version": "0.16.7-beta.0", | ||
"description": "HTML/XML processor", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
769919
0