@plumeria/utils 3.0.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/parser.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { CSSObject, StaticTable, KeyframesHashTable, KeyframesObjectTable, ThemeTable, ViewTransitionObjectTable, ViewTransitionHashTable, Tables } from './types';
2
- import { Module, CallExpression, Identifier, KeyValueProperty, StringLiteral, NumericLiteral, BooleanLiteral, ObjectExpression, MemberExpression, TemplateLiteral, BinaryExpression, UnaryExpression, VariableDeclaration, VariableDeclarator, ExportDeclaration } from '@swc/core';
2
+ import { Module, CallExpression, Identifier, KeyValueProperty, StringLiteral, NumericLiteral, BooleanLiteral, ObjectExpression, MemberExpression, TemplateLiteral, BinaryExpression, UnaryExpression, VariableDeclaration, VariableDeclarator, ExportDeclaration, ConditionalExpression } from '@swc/core';
3
3
  export declare const t: {
4
4
  isObjectExpression: (node: any) => node is ObjectExpression;
5
5
  isObjectProperty: (node: any) => node is KeyValueProperty;
@@ -18,6 +18,7 @@ export declare const t: {
18
18
  isVariableDeclarator: (node: any) => node is VariableDeclarator;
19
19
  isCallExpression: (node: any) => node is CallExpression;
20
20
  isNullLiteral: (node: any) => boolean;
21
+ isConditionalExpression: (node: any) => node is ConditionalExpression;
21
22
  };
22
23
  export declare function traverse(node: Module, visitor: {
23
24
  [key: string]: (path: {
package/dist/parser.js CHANGED
@@ -40,6 +40,7 @@ exports.t = {
40
40
  isVariableDeclarator: (node) => node?.type === 'VariableDeclarator',
41
41
  isCallExpression: (node) => node?.type === 'CallExpression',
42
42
  isNullLiteral: (node) => node?.type === 'NullLiteral',
43
+ isConditionalExpression: (node) => node?.type === 'ConditionalExpression',
43
44
  };
44
45
  function traverse(node, visitor) {
45
46
  let stopped = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/utils",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "Plumeria Utils",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",