polydup 0.8.0 → 0.8.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @polydup/core
1
+ # polydup
2
2
 
3
3
  Node.js bindings for PolyDup - a cross-language duplicate code detector powered by Rust.
4
4
 
@@ -13,13 +13,13 @@ Node.js bindings for PolyDup - a cross-language duplicate code detector powered
13
13
  ## Installation
14
14
 
15
15
  ```bash
16
- npm install @polydup/core
16
+ npm install polydup
17
17
  ```
18
18
 
19
19
  ## Quick Start
20
20
 
21
21
  ```javascript
22
- const { findDuplicates } = require('@polydup/core');
22
+ const { findDuplicates } = require('polydup');
23
23
 
24
24
  findDuplicates(['./src', './lib'], 50, 0.85)
25
25
  .then(report => {
@@ -75,7 +75,7 @@ Returns the library version string.
75
75
  Type definitions are automatically generated:
76
76
 
77
77
  ```typescript
78
- import { findDuplicates, Report, DuplicateMatch } from '@polydup/core';
78
+ import { findDuplicates, Report, DuplicateMatch } from 'polydup';
79
79
 
80
80
  const report: Report = await findDuplicates(['./src']);
81
81
 
@@ -122,7 +122,7 @@ interface ScanStats {
122
122
  ## Example: Custom Analysis
123
123
 
124
124
  ```javascript
125
- const { findDuplicates } = require('@polydup/core');
125
+ const { findDuplicates } = require('polydup');
126
126
 
127
127
  async function analyzeCrossProject() {
128
128
  const [frontend, backend] = await Promise.all([
package/index.d.ts CHANGED
@@ -45,7 +45,7 @@ export interface Report {
45
45
  *
46
46
  * # Example
47
47
  * ```javascript
48
- * const { findDuplicates } = require('@polydup/core');
48
+ * const { findDuplicates } = require('polydup');
49
49
  *
50
50
  * findDuplicates(['./src', './lib'], 50, 0.85)
51
51
  * .then(report => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "polydup",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Cross-language duplicate code detector - Node.js bindings",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -60,4 +60,4 @@
60
60
  "polydup-darwin-arm64": "0.8.0",
61
61
  "polydup-linux-arm64-gnu": "0.8.0"
62
62
  }
63
- }
63
+ }