1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

Update precommit checker

This commit is contained in:
Sergey Fuksman 2023-05-22 17:34:15 +03:00
parent 8349bc4366
commit 15386da90a
3 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,6 @@
const fs = require('fs');
const https = require('https');
const remoteConfigUrl = 'https://raw.githubusercontent.com/anytypeio/open/main/compliance/licenses-config.json';
const remoteConfigUrl = 'https://raw.githubusercontent.com/anyproto/open/main/compliance/licenses-config.json';
function processLicenses(licenses, allowedLicenses) {
const disallowedPackages = Object.keys(licenses).filter(pkg => {
@ -12,8 +12,8 @@ function processLicenses(licenses, allowedLicenses) {
pkgLicenses = "LGPL"
}
// Solutions developed by Anytype are allowed
if (licenses[pkg].publisher == "Anytype") {
// Solutions developed by Anytype or Any Association are allowed
if (licenses[pkg].publisher == "Anytype" || licenses[pkg].publisher == "Any" || licenses[pkg].publisher == "Any Association") {
return false;
}

1
package-lock.json generated
View file

@ -8,7 +8,6 @@
"name": "anytype",
"version": "0.31.47-alpha",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {
"@electron/remote": "^2.0.8",
"@sentry/browser": "^7.39.0",

View file

@ -32,7 +32,7 @@
"url": "git+https://github.com/anyproto/anytype-ts.git"
},
"author": {
"name": "Anytype",
"name": "Any Association",
"email": "info@anytype.io"
},
"bugs": {