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

@codady/axui

Package Overview
Dependencies
Maintainers
1
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codady/axui - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

src/scripts/global/options.js

50

dist/js/ax.cjs.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
/**

@@ -11,11 +13,21 @@ * Last modified: 2023-11-04 09:11:51

/**
* @since Last modified: 2023-11-04 16:45:09
* @name ax
* @since Last modified: 2023-11-04 18:55:01
* @constant options
* @type {Object}
* @property {boolean} immediate=true Whether it is executed immediately
* @description Global parameters
*/
const options = {
immediate: true,
};
/**
* @since Last modified: 2023-11-04 18:40:28
* @namespace ax
* @property {string} version=v3.0.0 - Framework current version number.
* @property {string} lang=zh-CN - Framework current language package.
* @property {options} options - Framework global parameters.
* @author AXUI development team <3217728223@qq.com>
* @license MIT license
* @description Namespaces.Tool functions, plug-ins, and modules start with "ax.*", Such as ax.getDom () and new ax.popup ().
* @typedef {(number|string)} ax
* @property {string} version - Framework version number
* @property {Object} lang - Frame language package
* @property {boolean} immediate=true - Is it immediately executed after loading
* @see {@link https://www.axui.cn|Official website}

@@ -25,2 +37,3 @@ * @see {@link https://github.com/axui/axui/issues|github issues}

* @issue QQ Group No.1:952502085
* @copyright This software can be used freely, but please keep "ax", "ax." , "axui" and "AXUI" keywords.
*/

@@ -30,7 +43,7 @@ const ax = {

lang,
immediate: true
options,
};
/**
* @since Last modified: 2023-11-04 09:11:37
* @since Last modified: 2023-11-04 18:37:55
* @function trim

@@ -54,3 +67,3 @@ * @description Clear string space, change and return.Supporting the space in multiple positions, which is more powerful than the native "trim" method.

/**
* @since Last modified: 2023-11-04 09:11:28
* @since Last modified: 2023-11-04 18:39:12
* @function getObjType

@@ -68,3 +81,3 @@ * @description Get object type.Can detect object types such as Array, Object, Function, String, Number, Boolean, Date, Symbol , Null, Undefined, HTMLxxxElement (Dom nodes all contain HTML).

/**
* @since Last modified: 2023-11-04 09:11:31
* @since Last modified: 2023-11-04 18:38:41
* @function getSelectorType

@@ -101,3 +114,3 @@ * @description Get node selector string type.'#demo' is judged as 'ID' with#; '. Demo' is judged as 'class'; 'demo' uppercase judgment as 'node'; '[demo]' medium bracket package is judged as 'attr'; 'DIV P' has a space for the father and son, and the judgment is 'Nesting'; other string returns the empty value.

/**
* @since Last modified: 2023-11-04 09:11:34
* @since Last modified: 2023-11-04 18:36:49
* @function renderTpl

@@ -133,3 +146,3 @@ * @description Get template string through parameters.Cut the template strings into fragments through labels, and put into the array through the PUSH method, and finally merge into a new string.

/**
* @since Last modified: 2023-11-04 09:11:32
* @since Last modified: 2023-11-04 18:35:38
* @function isEmpty

@@ -159,3 +172,3 @@ * @description Determine whether it is empty data.The data itself is empty data: 0| ''|false|undefined|null; <br>empty function: function () {}|() => {}; <br>empty array and empty objects: []|{}| [null]| [ undefined]| ['']| [""];<br> empty symbol object: symbol()|symbol.For(), will be judged as empty.

/**
* @since Last modified: 2023-11-04 09:11:22
* @since Last modified: 2023-11-04 18:39:47
* @function getDom

@@ -217,3 +230,3 @@ * @description Get a node.Support to get a real node or virtual node

/**
* Last modified: 2023-11-04 16:20:46
* Last modified: 2023-11-05 00:25:42
*/

@@ -230,2 +243,9 @@ Object.assign(ax, {

module.exports = ax;
exports.default = ax;
exports.getDom = getDom;
exports.getObjType = getObjType;
exports.getSelectorType = getSelectorType;
exports.isEmpty = isEmpty;
exports.more = more;
exports.renderTpl = renderTpl;
exports.trim = trim;

@@ -9,11 +9,21 @@ /**

/**
* @since Last modified: 2023-11-04 16:45:09
* @name ax
* @since Last modified: 2023-11-04 18:55:01
* @constant options
* @type {Object}
* @property {boolean} immediate=true Whether it is executed immediately
* @description Global parameters
*/
const options = {
immediate: true,
};
/**
* @since Last modified: 2023-11-04 18:40:28
* @namespace ax
* @property {string} version=v3.0.0 - Framework current version number.
* @property {string} lang=zh-CN - Framework current language package.
* @property {options} options - Framework global parameters.
* @author AXUI development team <3217728223@qq.com>
* @license MIT license
* @description Namespaces.Tool functions, plug-ins, and modules start with "ax.*", Such as ax.getDom () and new ax.popup ().
* @typedef {(number|string)} ax
* @property {string} version - Framework version number
* @property {Object} lang - Frame language package
* @property {boolean} immediate=true - Is it immediately executed after loading
* @see {@link https://www.axui.cn|Official website}

@@ -23,2 +33,3 @@ * @see {@link https://github.com/axui/axui/issues|github issues}

* @issue QQ Group No.1:952502085
* @copyright This software can be used freely, but please keep "ax", "ax." , "axui" and "AXUI" keywords.
*/

@@ -28,7 +39,7 @@ const ax = {

lang,
immediate: true
options,
};
/**
* @since Last modified: 2023-11-04 09:11:37
* @since Last modified: 2023-11-04 18:37:55
* @function trim

@@ -52,3 +63,3 @@ * @description Clear string space, change and return.Supporting the space in multiple positions, which is more powerful than the native "trim" method.

/**
* @since Last modified: 2023-11-04 09:11:28
* @since Last modified: 2023-11-04 18:39:12
* @function getObjType

@@ -66,3 +77,3 @@ * @description Get object type.Can detect object types such as Array, Object, Function, String, Number, Boolean, Date, Symbol , Null, Undefined, HTMLxxxElement (Dom nodes all contain HTML).

/**
* @since Last modified: 2023-11-04 09:11:31
* @since Last modified: 2023-11-04 18:38:41
* @function getSelectorType

@@ -99,3 +110,3 @@ * @description Get node selector string type.'#demo' is judged as 'ID' with#; '. Demo' is judged as 'class'; 'demo' uppercase judgment as 'node'; '[demo]' medium bracket package is judged as 'attr'; 'DIV P' has a space for the father and son, and the judgment is 'Nesting'; other string returns the empty value.

/**
* @since Last modified: 2023-11-04 09:11:34
* @since Last modified: 2023-11-04 18:36:49
* @function renderTpl

@@ -131,3 +142,3 @@ * @description Get template string through parameters.Cut the template strings into fragments through labels, and put into the array through the PUSH method, and finally merge into a new string.

/**
* @since Last modified: 2023-11-04 09:11:32
* @since Last modified: 2023-11-04 18:35:38
* @function isEmpty

@@ -157,3 +168,3 @@ * @description Determine whether it is empty data.The data itself is empty data: 0| ''|false|undefined|null; <br>empty function: function () {}|() => {}; <br>empty array and empty objects: []|{}| [null]| [ undefined]| ['']| [""];<br> empty symbol object: symbol()|symbol.For(), will be judged as empty.

/**
* @since Last modified: 2023-11-04 09:11:22
* @since Last modified: 2023-11-04 18:39:47
* @function getDom

@@ -215,3 +226,3 @@ * @description Get a node.Support to get a real node or virtual node

/**
* Last modified: 2023-11-04 16:20:46
* Last modified: 2023-11-05 00:25:42
*/

@@ -228,2 +239,2 @@ Object.assign(ax, {

export { ax as default };
export { ax as default, getDom, getObjType, getSelectorType, isEmpty, more, renderTpl, trim };
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ax = factory());
})(this, (function () { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ax = {}));
})(this, (function (exports) { 'use strict';

@@ -15,11 +15,21 @@ /**

/**
* @since Last modified: 2023-11-04 16:45:09
* @name ax
* @since Last modified: 2023-11-04 18:55:01
* @constant options
* @type {Object}
* @property {boolean} immediate=true Whether it is executed immediately
* @description Global parameters
*/
const options = {
immediate: true,
};
/**
* @since Last modified: 2023-11-04 18:40:28
* @namespace ax
* @property {string} version=v3.0.0 - Framework current version number.
* @property {string} lang=zh-CN - Framework current language package.
* @property {options} options - Framework global parameters.
* @author AXUI development team <3217728223@qq.com>
* @license MIT license
* @description Namespaces.Tool functions, plug-ins, and modules start with "ax.*", Such as ax.getDom () and new ax.popup ().
* @typedef {(number|string)} ax
* @property {string} version - Framework version number
* @property {Object} lang - Frame language package
* @property {boolean} immediate=true - Is it immediately executed after loading
* @see {@link https://www.axui.cn|Official website}

@@ -29,2 +39,3 @@ * @see {@link https://github.com/axui/axui/issues|github issues}

* @issue QQ Group No.1:952502085
* @copyright This software can be used freely, but please keep "ax", "ax." , "axui" and "AXUI" keywords.
*/

@@ -34,7 +45,7 @@ const ax = {

lang,
immediate: true
options,
};
/**
* @since Last modified: 2023-11-04 09:11:37
* @since Last modified: 2023-11-04 18:37:55
* @function trim

@@ -58,3 +69,3 @@ * @description Clear string space, change and return.Supporting the space in multiple positions, which is more powerful than the native "trim" method.

/**
* @since Last modified: 2023-11-04 09:11:28
* @since Last modified: 2023-11-04 18:39:12
* @function getObjType

@@ -72,3 +83,3 @@ * @description Get object type.Can detect object types such as Array, Object, Function, String, Number, Boolean, Date, Symbol , Null, Undefined, HTMLxxxElement (Dom nodes all contain HTML).

/**
* @since Last modified: 2023-11-04 09:11:31
* @since Last modified: 2023-11-04 18:38:41
* @function getSelectorType

@@ -105,3 +116,3 @@ * @description Get node selector string type.'#demo' is judged as 'ID' with#; '. Demo' is judged as 'class'; 'demo' uppercase judgment as 'node'; '[demo]' medium bracket package is judged as 'attr'; 'DIV P' has a space for the father and son, and the judgment is 'Nesting'; other string returns the empty value.

/**
* @since Last modified: 2023-11-04 09:11:34
* @since Last modified: 2023-11-04 18:36:49
* @function renderTpl

@@ -137,3 +148,3 @@ * @description Get template string through parameters.Cut the template strings into fragments through labels, and put into the array through the PUSH method, and finally merge into a new string.

/**
* @since Last modified: 2023-11-04 09:11:32
* @since Last modified: 2023-11-04 18:35:38
* @function isEmpty

@@ -163,3 +174,3 @@ * @description Determine whether it is empty data.The data itself is empty data: 0| ''|false|undefined|null; <br>empty function: function () {}|() => {}; <br>empty array and empty objects: []|{}| [null]| [ undefined]| ['']| [""];<br> empty symbol object: symbol()|symbol.For(), will be judged as empty.

/**
* @since Last modified: 2023-11-04 09:11:22
* @since Last modified: 2023-11-04 18:39:47
* @function getDom

@@ -221,3 +232,3 @@ * @description Get a node.Support to get a real node or virtual node

/**
* Last modified: 2023-11-04 16:20:46
* Last modified: 2023-11-05 00:25:42
*/

@@ -234,4 +245,13 @@ Object.assign(ax, {

return ax;
exports.default = ax;
exports.getDom = getDom;
exports.getObjType = getObjType;
exports.getSelectorType = getSelectorType;
exports.isEmpty = isEmpty;
exports.more = more;
exports.renderTpl = renderTpl;
exports.trim = trim;
Object.defineProperty(exports, '__esModule', { value: true });
}));
{
"name": "@codady/axui",
"version": "0.0.11",
"version": "0.0.12",
"keywords": [

@@ -17,3 +17,3 @@ "javascript",

"scripts": {
"build": "rollup --config && jsdoc -r README.md -c jsdoc.json"
"build": "rollup --config && jsdoc -c jsdoc.json"
},

@@ -20,0 +20,0 @@ "files": [

/**
* @since Last modified: 2023-11-04 16:45:09
* @name ax
* @since Last modified: 2023-11-04 18:40:28
* @namespace ax
* @property {string} version=v3.0.0 - Framework current version number.
* @property {string} lang=zh-CN - Framework current language package.
* @property {options} options - Framework global parameters.
* @author AXUI development team <3217728223@qq.com>
* @license MIT license
* @description Namespaces.Tool functions, plug-ins, and modules start with "ax.*", Such as ax.getDom () and new ax.popup ().
* @typedef {(number|string)} ax
* @property {string} version - Framework version number
* @property {Object} lang - Frame language package
* @property {boolean} immediate=true - Is it immediately executed after loading
* @see {@link https://www.axui.cn|Official website}

@@ -15,10 +14,12 @@ * @see {@link https://github.com/axui/axui/issues|github issues}

* @issue QQ Group No.1:952502085
* @copyright This software can be used freely, but please keep "ax", "ax." , "axui" and "AXUI" keywords.
*/
'use strict';
import lang from '../lang/zh-CN';
import options from './options';
const ax = {
version: 'v3.0.0',
lang,
immediate: true
options,
};
export default ax;
/**
* @since Last modified: 2023-11-04 16:45:09
* @name ax
* @since Last modified: 2023-11-04 18:40:28
* @namespace ax
* @property {string} version=v3.0.0 - Framework current version number.
* @property {string} lang=zh-CN - Framework current language package.
* @property {options} options - Framework global parameters.
* @author AXUI development team <3217728223@qq.com>
* @license MIT license
* @description Namespaces.Tool functions, plug-ins, and modules start with "ax.*", Such as ax.getDom () and new ax.popup ().
* @typedef {(number|string)} ax
* @property {string} version - Framework version number
* @property {Object} lang - Frame language package
* @property {boolean} immediate=true - Is it immediately executed after loading
* @see {@link https://www.axui.cn|Official website}

@@ -15,10 +14,12 @@ * @see {@link https://github.com/axui/axui/issues|github issues}

* @issue QQ Group No.1:952502085
* @copyright This software can be used freely, but please keep "ax", "ax." , "axui" and "AXUI" keywords.
*/
'use strict';
import lang from '../lang/zh-CN';
import options from './options';
const ax = {
version: 'v3.0.0',
lang,
immediate:true
options,
}
export default ax;
/**
* Last modified: 2023-11-04 16:20:46
* Last modified: 2023-11-05 00:25:42
*/

@@ -7,8 +7,15 @@ 'use strict';

import trim from './utils/trim';
export { trim };
import getObjType from './utils/getObjType';
export { getObjType };
import getSelectorType from './utils/getSelectorType';
export { getSelectorType };
import renderTpl from './utils/renderTpl';
export { renderTpl };
import isEmpty from './utils/isEmpty';
export { isEmpty };
import getDom from './utils/getDom';
export { getDom };
import more from './modules/more';
export { more };
Object.assign(ax, {

@@ -15,0 +22,0 @@ trim: trim,

/**
* Last modified: 2023-11-04 16:20:46
* Last modified: 2023-11-05 00:25:42
*/

@@ -7,8 +7,15 @@ 'use strict'

import trim from './utils/trim';
export { trim }
import getObjType from './utils/getObjType';
export { getObjType }
import getSelectorType from './utils/getSelectorType';
export { getSelectorType }
import renderTpl from './utils/renderTpl';
export { renderTpl }
import isEmpty from './utils/isEmpty';
export { isEmpty }
import getDom from './utils/getDom';
export { getDom }
import more from './modules/more';
export { more }
Object.assign(ax, {

@@ -15,0 +22,0 @@ trim: trim,

/**
* @since Last modified: 2023-11-04 09:11:22
* @since Last modified: 2023-11-04 18:39:47
* @function getDom

@@ -13,2 +13,3 @@ * @description Get a node.Support to get a real node or virtual node

*/
'use strict';
import getObjType from './getObjType';

@@ -15,0 +16,0 @@ import getSelectorType from './getSelectorType';

/**
* @since Last modified: 2023-11-04 09:11:22
* @since Last modified: 2023-11-04 18:39:47
* @function getDom

@@ -13,2 +13,3 @@ * @description Get a node.Support to get a real node or virtual node

*/
'use strict';
import getObjType from './getObjType';

@@ -15,0 +16,0 @@ import getSelectorType from './getSelectorType';

/**
* @since Last modified: 2023-11-04 09:11:28
* @since Last modified: 2023-11-04 18:39:12
* @function getObjType

@@ -12,3 +12,4 @@ * @description Get object type.Can detect object types such as Array, Object, Function, String, Number, Boolean, Date, Symbol , Null, Undefined, HTMLxxxElement (Dom nodes all contain HTML).

*/
'use strict';
const getObjType = (obj) => Object.prototype.toString.call(obj).slice(8, -1);
export default getObjType;
/**
* @since Last modified: 2023-11-04 09:11:28
* @since Last modified: 2023-11-04 18:39:12
* @function getObjType

@@ -12,3 +12,4 @@ * @description Get object type.Can detect object types such as Array, Object, Function, String, Number, Boolean, Date, Symbol , Null, Undefined, HTMLxxxElement (Dom nodes all contain HTML).

*/
'use strict';
const getObjType = (obj:any): string => Object.prototype.toString.call(obj).slice(8, -1);
export default getObjType;
/**
* @since Last modified: 2023-11-04 09:11:31
* @since Last modified: 2023-11-04 18:38:41
* @function getSelectorType

@@ -12,2 +12,3 @@ * @description Get node selector string type.'#demo' is judged as 'ID' with#; '. Demo' is judged as 'class'; 'demo' uppercase judgment as 'node'; '[demo]' medium bracket package is judged as 'attr'; 'DIV P' has a space for the father and son, and the judgment is 'Nesting'; other string returns the empty value.

*/
'use strict';
const getSelectorType = (str) => {

@@ -14,0 +15,0 @@ if (typeof str !== 'string') {

/**
* @since Last modified: 2023-11-04 09:11:31
* @since Last modified: 2023-11-04 18:38:41
* @function getSelectorType

@@ -12,2 +12,3 @@ * @description Get node selector string type.'#demo' is judged as 'ID' with#; '. Demo' is judged as 'class'; 'demo' uppercase judgment as 'node'; '[demo]' medium bracket package is judged as 'attr'; 'DIV P' has a space for the father and son, and the judgment is 'Nesting'; other string returns the empty value.

*/
'use strict';
const getSelectorType = (str: string): string | boolean => {

@@ -14,0 +15,0 @@ if (typeof str !== 'string') {

/**
* @since Last modified: 2023-11-04 09:11:32
* @since Last modified: 2023-11-04 18:35:38
* @function isEmpty

@@ -12,2 +12,3 @@ * @description Determine whether it is empty data.The data itself is empty data: 0| ''|false|undefined|null; <br>empty function: function () {}|() => {}; <br>empty array and empty objects: []|{}| [null]| [ undefined]| ['']| [""];<br> empty symbol object: symbol()|symbol.For(), will be judged as empty.

*/
'use strict';
import getObjType from './getObjType';

@@ -14,0 +15,0 @@ const isEmpty = (data) => {

/**
* @since Last modified: 2023-11-04 09:11:32
* @since Last modified: 2023-11-04 18:35:38
* @function isEmpty

@@ -12,2 +12,3 @@ * @description Determine whether it is empty data.The data itself is empty data: 0| ''|false|undefined|null; <br>empty function: function () {}|() => {}; <br>empty array and empty objects: []|{}| [null]| [ undefined]| ['']| [""];<br> empty symbol object: symbol()|symbol.For(), will be judged as empty.

*/
'use strict';
import getObjType from './getObjType';

@@ -14,0 +15,0 @@ const isEmpty = (data: any): boolean => {

/**
* @since Last modified: 2023-11-04 09:11:34
* @since Last modified: 2023-11-04 18:36:49
* @function renderTpl

@@ -13,2 +13,3 @@ * @description Get template string through parameters.Cut the template strings into fragments through labels, and put into the array through the PUSH method, and finally merge into a new string.

*/
'use strict';
const renderTpl = (html, data) => {

@@ -15,0 +16,0 @@ if (!html) {

/**
* @since Last modified: 2023-11-04 09:11:34
* @since Last modified: 2023-11-04 18:36:49
* @function renderTpl

@@ -13,2 +13,3 @@ * @description Get template string through parameters.Cut the template strings into fragments through labels, and put into the array through the PUSH method, and finally merge into a new string.

*/
'use strict';
const renderTpl = (html: string, data: object): string | boolean => {

@@ -15,0 +16,0 @@ if (!html) {

/**
* @since Last modified: 2023-11-04 09:11:37
* @since Last modified: 2023-11-04 18:37:55
* @function trim

@@ -13,2 +13,3 @@ * @description Clear string space, change and return.Supporting the space in multiple positions, which is more powerful than the native "trim" method.

*/
'use strict';
const trim = (str, placement) => {

@@ -15,0 +16,0 @@ return placement === 'start' ? str.trimStart() :

/**
* @since Last modified: 2023-11-04 09:11:37
* @since Last modified: 2023-11-04 18:37:55
* @function trim

@@ -13,2 +13,3 @@ * @description Clear string space, change and return.Supporting the space in multiple positions, which is more powerful than the native "trim" method.

*/
'use strict';
const trim = (str: string, placement?: 'start' | 'end' | 'both' | 'global'): string => {

@@ -15,0 +16,0 @@ return placement === 'start' ? str.trimStart() :

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