Skip to content

Commit ffd1929

Browse files
committed
Remove Gumroad
1 parent 1b2696e commit ffd1929

File tree

8 files changed

+2
-291
lines changed

8 files changed

+2
-291
lines changed

packages/utilities/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
"main": "./lib/index.js",
3131
"scripts": {
3232
"prebuild": "npm run clean",
33-
"build": "npm run build:interpolate-gumroad-script && npm run build:generate-index && npm run build:js && npm run build:generate-docs",
34-
"build:interpolate-gumroad-script": "tsx scripts/interpolate-gumroad-script.ts",
33+
"build": "npm run build:generate-index && npm run build:js && npm run build:generate-docs",
3534
"build:generate-index": "rimraf src/index.ts && tsx ../../scripts/generate-index.ts -- 'src/**/*.ts' '!src/**/private/**/*' && eslint --fix src/index.ts",
3635
"build:js": "tsc --build",
3736
"build:generate-docs": "tsx scripts/generate-docs.ts '../website/docs/utilities.md'",

packages/utilities/scripts/interpolate-gumroad-script.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.

packages/utilities/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export {
1818
incrementDocumentUseCount,
1919
resetDocumentUseCount
2020
} from './monetization/document-use-count.js'
21-
export { validateGumroadLicenseKeyMainAsync } from './monetization/gumroad/validate-gumroad-license-key-main-async.js'
22-
export { validateGumroadLicenseKeyUiAsync } from './monetization/gumroad/validate-gumroad-license-key-ui-async.js'
2321
export {
2422
getTotalUseCountAsync,
2523
incrementTotalUseCountAsync,

packages/utilities/src/monetization/gumroad/private/empty-license.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/utilities/src/monetization/gumroad/private/script.js

Lines changed: 0 additions & 55 deletions
This file was deleted.

packages/utilities/src/monetization/gumroad/validate-gumroad-license-key-main-async.ts

Lines changed: 0 additions & 48 deletions
This file was deleted.

packages/utilities/src/monetization/gumroad/validate-gumroad-license-key-ui-async.ts

Lines changed: 0 additions & 70 deletions
This file was deleted.

packages/website/docs/utilities.md

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,7 @@ import {
340340
incrementDocumentUseCount,
341341
incrementTotalUseCountAsync,
342342
resetDocumentUseCount,
343-
resetTotalUseCountAsync,
344-
validateGumroadLicenseKeyMainAsync,
345-
validateGumroadLicenseKeyUiAsync
343+
resetTotalUseCountAsync
346344
} from '@create-figma-plugin/utilities'
347345
```
348346

@@ -440,56 +438,6 @@ on which to store the use count. Defaults to `'totalUseCount'`.
440438
Promise<void>
441439
```
442440

443-
### `validateGumroadLicenseKeyMainAsync(options)`
444-
445-
Validates the given [Gumroad license key](https://help.gumroad.com/article/76-license-keys)
446-
for the product with the given `productPermalink` in the
447-
[main context](https://figma.com/plugin-docs/how-plugins-run/).
448-
449-
***Parameters***
450-
451-
- `options` (`object`)
452-
- `incrementUseCount` (`boolean`) – *Optional.* Set to `true` to increment the license
453-
key use count tracked by Gumroad. Defaults to `false`.
454-
- `licenseKey` (`string`) – The Gumroad license key to validate.
455-
- `productPermalink` (`string`) – The Gumroad “product permalink”. If the
456-
Gumroad product URL is `https://gumroad.com/l/QGMY`, then the product
457-
permalink is `'QGMY'`.
458-
459-
***Return type***
460-
461-
Returns a
462-
[`LicenseKeyValidationResult`](https://github.com/yuanqing/create-figma-plugin/blob/main/packages/utilities/src/monetization/types.ts) object.
463-
464-
```
465-
Promise<LicenseKeyValidationResult>
466-
```
467-
468-
### `validateGumroadLicenseKeyUiAsync(options)`
469-
470-
Validates the given [Gumroad license key](https://help.gumroad.com/article/76-license-keys)
471-
for the product with the given `productPermalink` in the
472-
[UI context](https://figma.com/plugin-docs/how-plugins-run/).
473-
474-
***Parameters***
475-
476-
- `options` (`object`)
477-
- `incrementUseCount` (`boolean`) – *Optional.* Set to `true` to increment the license
478-
key use count tracked by Gumroad. Defaults to `false`.
479-
- `licenseKey` (`string`) – The Gumroad license key to validate.
480-
- `productPermalink` (`string`) – The Gumroad “product permalink”. If the
481-
Gumroad product URL is `https://gumroad.com/l/QGMY`, then the product
482-
permalink is `'QGMY'`.
483-
484-
***Return type***
485-
486-
Returns a
487-
[`LicenseKeyValidationResult`](https://github.com/yuanqing/create-figma-plugin/blob/main/packages/utilities/src/monetization/types.ts) object.
488-
489-
```
490-
Promise<LicenseKeyValidationResult>
491-
```
492-
493441
## Node
494442

495443
```ts

0 commit comments

Comments
 (0)