@pixagram/sanitizer 0.2.0 → 0.2.1

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # pixa-content
1
+ # @pixagram/sanitizer
2
2
 
3
3
  > Secure content processing engine for the PIXA blockchain platform.
4
4
  > Rust → WebAssembly module for browser-side rendering of posts, comments, profiles, and metadata.
@@ -81,10 +81,10 @@ npm install -g binaryen
81
81
  ### JavaScript / React
82
82
 
83
83
  ```javascript
84
- import { PixaContent } from './pixa-content.js';
84
+ import { PixaContent } from '@pixagram/sanitizer';
85
85
 
86
86
  // Initialize once
87
- const pixa = await PixaContent.init('./pixa_content.js');
87
+ const pixa = await PixaContent.init('@pixagram/sanitizer');
88
88
 
89
89
  // ── Render a post ──────────────────────────────
90
90
  const result = pixa.sanitizePost(postBody, {
package/package.json CHANGED
@@ -5,19 +5,19 @@
5
5
  "Pixagram SA"
6
6
  ],
7
7
  "description": "Secure content processing for PIXA blockchain — Markdown/HTML rendering, sanitization, metadata parsing, summarization",
8
- "version": "0.2.0",
8
+ "version": "0.2.1",
9
9
  "license": "PROPRIETARY",
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "https://github.com/nicmusic/pixa-content"
12
+ "url": "https://github.com/pixagram-blockchain/sanitizer"
13
13
  },
14
14
  "files": [
15
- "pixa_content_bg.wasm",
16
- "pixa_content.js",
17
- "pixa_content.d.ts"
15
+ "sanitizer_bg.wasm",
16
+ "sanitizer.js",
17
+ "sanitizer.d.ts"
18
18
  ],
19
- "main": "pixa_content.js",
20
- "types": "pixa_content.d.ts",
19
+ "main": "sanitizer.js",
20
+ "types": "sanitizer.d.ts",
21
21
  "sideEffects": [
22
22
  "./snippets/*"
23
23
  ]
@@ -1,4 +1,4 @@
1
- /* @ts-self-types="./pixa_content.d.ts" */
1
+ /* @ts-self-types="./sanitizer.d.ts" */
2
2
 
3
3
  /**
4
4
  * Extract plain text from content.
@@ -356,7 +356,7 @@ function __wbg_get_imports() {
356
356
  };
357
357
  return {
358
358
  __proto__: null,
359
- "./pixa_content_bg.js": import0,
359
+ "./sanitizer_bg.js": import0,
360
360
  };
361
361
  }
362
362
 
@@ -552,7 +552,7 @@ async function __wbg_init(module_or_path) {
552
552
  }
553
553
 
554
554
  if (module_or_path === undefined) {
555
- module_or_path = new URL('pixa_content_bg.wasm', import.meta.url);
555
+ module_or_path = new URL('sanitizer_bg.wasm', import.meta.url);
556
556
  }
557
557
  const imports = __wbg_get_imports();
558
558
 
index 4fc3940..fb2d5d5 100644
Binary file
File without changes