@meistrari/tela-sdk-js 1.0.1 → 1.0.2

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/index.cjs CHANGED
@@ -1,9 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const changeCase = require('change-case');
4
- const micromatch = require('micromatch');
5
-
6
- function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
4
+ const minimatch = require('minimatch');
7
5
 
8
6
  function _interopNamespaceCompat(e) {
9
7
  if (e && typeof e === 'object' && 'default' in e) return e;
@@ -18,9 +16,8 @@ function _interopNamespaceCompat(e) {
18
16
  }
19
17
 
20
18
  const changeCase__namespace = /*#__PURE__*/_interopNamespaceCompat(changeCase);
21
- const micromatch__default = /*#__PURE__*/_interopDefaultCompat(micromatch);
22
19
 
23
- const version = "1.0.1";
20
+ const version = "1.0.2";
24
21
 
25
22
  var __defProp$5 = Object.defineProperty;
26
23
  var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -210,8 +207,12 @@ const DEFAULT_FIELDS_TRANSFORMATION_EXCLUSIONS = [
210
207
 
211
208
  function isExcluded(path, exclusions) {
212
209
  return exclusions.some((pattern) => {
213
- const isMatch = micromatch__default.isMatch(path, pattern);
214
- return isMatch;
210
+ return minimatch.minimatch(path, pattern, {
211
+ dot: true,
212
+ nobrace: false,
213
+ noglobstar: false,
214
+ matchBase: false
215
+ });
215
216
  });
216
217
  }
217
218
  function transformObjectFromCamelCaseToSnakeCase(obj, exclusions = []) {
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as changeCase from 'change-case';
2
- import micromatch from 'micromatch';
2
+ import { minimatch } from 'minimatch';
3
3
 
4
- const version = "1.0.1";
4
+ const version = "1.0.2";
5
5
 
6
6
  var __defProp$5 = Object.defineProperty;
7
7
  var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -191,8 +191,12 @@ const DEFAULT_FIELDS_TRANSFORMATION_EXCLUSIONS = [
191
191
 
192
192
  function isExcluded(path, exclusions) {
193
193
  return exclusions.some((pattern) => {
194
- const isMatch = micromatch.isMatch(path, pattern);
195
- return isMatch;
194
+ return minimatch(path, pattern, {
195
+ dot: true,
196
+ nobrace: false,
197
+ noglobstar: false,
198
+ matchBase: false
199
+ });
196
200
  });
197
201
  }
198
202
  function transformObjectFromCamelCaseToSnakeCase(obj, exclusions = []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meistrari/tela-sdk-js",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,13 +37,11 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "change-case": "5.4.4",
40
- "micromatch": "4.0.8"
40
+ "minimatch": "10.0.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@antfu/eslint-config": "3.0.0",
44
- "@rollup/plugin-inject": "5.0.5",
45
44
  "@types/bun": "latest",
46
- "@types/micromatch": "4.0.9",
47
45
  "@types/node": "22.5.5",
48
46
  "@vitest/browser": "^3.0.8",
49
47
  "husky": "9.1.6",