native-document 1.0.278 → 1.0.279

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.
@@ -40,7 +40,7 @@ export default function NdViteDevtools(options) {
40
40
  }
41
41
  return null;
42
42
  }
43
- if (id.includes('node_modules')) {
43
+ if (id.includes('node_modules') || id.includes('native-document')) {
44
44
  return null;
45
45
  }
46
46
 
@@ -7,8 +7,6 @@ import {TRANSFORMED_OBSERVABLE_ID} from '../constantes.js';
7
7
  const __filename = fileURLToPath(import.meta.url);
8
8
  const __dirname = path.dirname(__filename);
9
9
 
10
-
11
-
12
10
  export function template(code, params) {
13
11
  let codeFormatted = code;
14
12
  for(const key in params) {
@@ -54,7 +52,7 @@ export function transformObservableDeclarations(code, id) {
54
52
  }
55
53
 
56
54
  export function isFileMustBeModified(file) {
57
- if(!file.includes('/src/') || file.includes('node_modules') || /\.test\.js$/.test(file)) {
55
+ if(!file.includes('/src/') || file.includes('native-document') || file.includes('node_modules') || /\.test\.js$/.test(file)) {
58
56
  return false;
59
57
  }
60
58
  const content = fs.readFileSync(file, 'utf-8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "native-document",
3
- "version": "1.0.278",
3
+ "version": "1.0.279",
4
4
  "description": "A reactive JavaScript framework that preserves native DOM simplicity without sacrificing modern features",
5
5
  "author": "AfroCodeur <https://github.com/afrocodeur>",
6
6
  "license": "MIT",
@@ -1,5 +1,4 @@
1
1
  import {Observable as ObservableOriginal} from './Observable';
2
- import {call} from '@babel/traverse/lib/path/context';
3
2
  import {TRANSFORMED_OBSERVABLE_ID} from '../../../devtools/constantes';
4
3
 
5
4
  const HrmGlobakObservableRegistry = new Map();