Compare commits
11 Commits
Author | SHA1 | Date |
---|---|---|
|
b3228f8805 | |
|
c8d0437e4b | |
|
66b3a74d72 | |
|
14a72ac7af | |
|
273b416216 | |
|
e0a31d84a6 | |
|
3a012ae76b | |
|
9a5264be85 | |
|
11ec464c07 | |
|
4b9981691e | |
|
c45120f0bf |
|
@ -18,6 +18,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
||||||
|
## [2.2.1]
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Updated my own gateway to its HTTPS link
|
||||||
|
|
||||||
## [2.2.0] - 2022-03-11
|
## [2.2.0] - 2022-03-11
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
Cache a specific hash on a bunch of public gateways.
|
Cache a specific hash on a bunch of public gateways.
|
||||||
|
|
||||||
You can view this website on [GitLab Pages](https://natoboram.gitlab.io/public-gateway-cacher) and [IPFS](https://bafybeigmtv32yzjryuv5uwfhzqtrjt6va7dwaxuvhoqqirkwcg2q6mlai4.ipfs.dweb.link).
|
You can view this website on [GitLab Pages](https://natoboram.gitlab.io/public-gateway-cacher) and [IPFS](https://bafybeievsdzxuvuah5t6vzhig525jecp7wmupnm7olxdkonqmte57zoqf4.ipfs.dweb.link).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
40
package.json
40
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "public-gateway-cacher",
|
"name": "public-gateway-cacher",
|
||||||
"version": "2.2.0",
|
"version": "2.2.1",
|
||||||
"description": "Cache a specific hash on a bunch of public gateways.",
|
"description": "Cache a specific hash on a bunch of public gateways.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"IPFS"
|
"IPFS"
|
||||||
|
@ -39,17 +39,17 @@
|
||||||
"postinstall": "ngcc"
|
"postinstall": "ngcc"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "~13.2.6",
|
"@angular/animations": "~13.3.9",
|
||||||
"@angular/cdk": "~13.2.6",
|
"@angular/cdk": "~13.3.7",
|
||||||
"@angular/common": "~13.2.6",
|
"@angular/common": "~13.3.9",
|
||||||
"@angular/compiler": "~13.2.6",
|
"@angular/compiler": "~13.3.9",
|
||||||
"@angular/core": "~13.2.6",
|
"@angular/core": "~13.3.9",
|
||||||
"@angular/flex-layout": "^13.0.0-beta.38",
|
"@angular/flex-layout": "^13.0.0-beta.38",
|
||||||
"@angular/forms": "~13.2.6",
|
"@angular/forms": "~13.3.9",
|
||||||
"@angular/material": "^13.2.6",
|
"@angular/material": "^13.3.7",
|
||||||
"@angular/platform-browser": "~13.2.6",
|
"@angular/platform-browser": "~13.3.9",
|
||||||
"@angular/platform-browser-dynamic": "~13.2.6",
|
"@angular/platform-browser-dynamic": "~13.3.9",
|
||||||
"@angular/router": "~13.2.6",
|
"@angular/router": "~13.3.9",
|
||||||
"bootstrap": "^5.1.3",
|
"bootstrap": "^5.1.3",
|
||||||
"ipfs-css": "^1.3.0",
|
"ipfs-css": "^1.3.0",
|
||||||
"rxjs": "~7.5.5",
|
"rxjs": "~7.5.5",
|
||||||
|
@ -57,15 +57,15 @@
|
||||||
"zone.js": "~0.11.4"
|
"zone.js": "~0.11.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "~13.2.6",
|
"@angular-devkit/build-angular": "~13.3.6",
|
||||||
"@angular-eslint/builder": "13.1.0",
|
"@angular-eslint/builder": "13.2.1",
|
||||||
"@angular-eslint/eslint-plugin": "13.1.0",
|
"@angular-eslint/eslint-plugin": "13.2.1",
|
||||||
"@angular-eslint/eslint-plugin-template": "13.1.0",
|
"@angular-eslint/eslint-plugin-template": "13.2.1",
|
||||||
"@angular-eslint/schematics": "13.1.0",
|
"@angular-eslint/schematics": "13.2.1",
|
||||||
"@angular-eslint/template-parser": "13.1.0",
|
"@angular-eslint/template-parser": "13.2.1",
|
||||||
"@angular/cli": "~13.2.6",
|
"@angular/cli": "~13.3.6",
|
||||||
"@angular/compiler-cli": "~13.2.6",
|
"@angular/compiler-cli": "~13.3.9",
|
||||||
"@angular/language-service": "~13.2.6",
|
"@angular/language-service": "~13.3.9",
|
||||||
"@types/jasmine": "~3.10.3",
|
"@types/jasmine": "~3.10.3",
|
||||||
"@types/jasminewd2": "~2.0.3",
|
"@types/jasminewd2": "~2.0.3",
|
||||||
"@types/node": "^17.0.21",
|
"@types/node": "^17.0.21",
|
||||||
|
|
2522
pnpm-lock.yaml
2522
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -3,14 +3,12 @@ import { RouterTestingModule } from "@angular/router/testing"
|
||||||
import { AppComponent } from "./app.component"
|
import { AppComponent } from "./app.component"
|
||||||
|
|
||||||
describe("AppComponent", (): void => {
|
describe("AppComponent", (): void => {
|
||||||
beforeEach(
|
beforeEach(waitForAsync((): void => {
|
||||||
waitForAsync((): void => {
|
|
||||||
void TestBed.configureTestingModule({
|
void TestBed.configureTestingModule({
|
||||||
imports: [RouterTestingModule],
|
imports: [RouterTestingModule],
|
||||||
declarations: [AppComponent],
|
declarations: [AppComponent],
|
||||||
}).compileComponents()
|
}).compileComponents()
|
||||||
})
|
}))
|
||||||
)
|
|
||||||
|
|
||||||
it("should create the app", (): void => {
|
it("should create the app", (): void => {
|
||||||
const fixture = TestBed.createComponent(AppComponent)
|
const fixture = TestBed.createComponent(AppComponent)
|
||||||
|
|
|
@ -7,14 +7,12 @@ describe("PagesComponent", (): void => {
|
||||||
let component: PagesComponent
|
let component: PagesComponent
|
||||||
let fixture: ComponentFixture<PagesComponent>
|
let fixture: ComponentFixture<PagesComponent>
|
||||||
|
|
||||||
beforeEach(
|
beforeEach(waitForAsync((): void => {
|
||||||
waitForAsync((): void => {
|
|
||||||
void TestBed.configureTestingModule({
|
void TestBed.configureTestingModule({
|
||||||
imports: [HttpClientTestingModule],
|
imports: [HttpClientTestingModule],
|
||||||
declarations: [PagesComponent],
|
declarations: [PagesComponent],
|
||||||
}).compileComponents()
|
}).compileComponents()
|
||||||
})
|
}))
|
||||||
)
|
|
||||||
|
|
||||||
beforeEach((): void => {
|
beforeEach((): void => {
|
||||||
fixture = TestBed.createComponent(PagesComponent)
|
fixture = TestBed.createComponent(PagesComponent)
|
||||||
|
|
|
@ -28,7 +28,7 @@ export class GatewayService {
|
||||||
|
|
||||||
url(gateway: string, protocol: Protocol, hashpath: string): string {
|
url(gateway: string, protocol: Protocol, hashpath: string): string {
|
||||||
const splits: string[] = hashpath.split("/")
|
const splits: string[] = hashpath.split("/")
|
||||||
const url: string = gateway.replace(":type", protocol).replace(":hash", splits.shift() ?? "")
|
const url: string = gateway.replaceAll(":type", protocol).replaceAll(":hash", splits.shift() ?? "")
|
||||||
return splits.length ? [url, splits.join("/")].join("/") : url
|
return splits.length ? [url, splits.join("/")].join("/") : url
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
"https://ipfs-cdn.aragon.ventures/:type/:hash",
|
"https://ipfs-cdn.aragon.ventures/:type/:hash",
|
||||||
"https://permaweb.io/:type/:hash",
|
"https://permaweb.io/:type/:hash",
|
||||||
"https://ipfs.best-practice.se/:type/:hash",
|
"https://ipfs.best-practice.se/:type/:hash",
|
||||||
"https://2read.net/:type/:hash",
|
|
||||||
"https://ipfs.2read.net/:type/:hash",
|
|
||||||
"https://storjipfs-gateway.com/:type/:hash",
|
"https://storjipfs-gateway.com/:type/:hash",
|
||||||
"https://ipfs.runfission.com/:type/:hash",
|
"https://ipfs.runfission.com/:type/:hash",
|
||||||
"https://ipfs.trusti.id/:type/:hash",
|
"https://ipfs.trusti.id/:type/:hash",
|
||||||
|
@ -58,7 +56,7 @@
|
||||||
"https://ipfs.eth.aragon.network/:type/:hash",
|
"https://ipfs.eth.aragon.network/:type/:hash",
|
||||||
"https://ipfs.smartholdem.io/:type/:hash",
|
"https://ipfs.smartholdem.io/:type/:hash",
|
||||||
"https://ipfs.xoqq.ch/:type/:hash",
|
"https://ipfs.xoqq.ch/:type/:hash",
|
||||||
"http://natoboram.mynetgear.com:8080/:type/:hash",
|
"https://natoboram.mynetgear.com/:type/:hash",
|
||||||
"https://video.oneloveipfs.com/:type/:hash",
|
"https://video.oneloveipfs.com/:type/:hash",
|
||||||
"http://ipfs.anonymize.com/:type/:hash",
|
"http://ipfs.anonymize.com/:type/:hash",
|
||||||
"https://ipfs.taxi/:type/:hash",
|
"https://ipfs.taxi/:type/:hash",
|
||||||
|
@ -89,5 +87,10 @@
|
||||||
"https://ipfs.tribecap.co/:type/:hash",
|
"https://ipfs.tribecap.co/:type/:hash",
|
||||||
"https://ipfs.kinematiks.com/:type/:hash",
|
"https://ipfs.kinematiks.com/:type/:hash",
|
||||||
"https://c4rex.co/:type/:hash",
|
"https://c4rex.co/:type/:hash",
|
||||||
"https://ipfs.zod.tv/:type/:hash"
|
"https://ipfs.zod.tv/:type/:hash",
|
||||||
|
"https://nftstorage.link/:type/:hash",
|
||||||
|
"https://gravity.jup.io/:type/:hash",
|
||||||
|
"http://fzdqwfb5ml56oadins5jpuhe6ki6bk33umri35p5kt2tue4fpws5efid.onion/:type/:hash",
|
||||||
|
"https://tth-ipfs.com/:type/:hash",
|
||||||
|
"https://:type.natoboram.com/:type/:hash"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue