File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1- // import {fingerprintProcessOpenClientResponseKVStorage } from "./fingerprintKVStorage.example";
1+ // import { saveFingerprintResultToKVStore } from './saveToKVStore'
22import { Plugin } from '../src/utils/registerPlugin'
33
44export default [
5- /* {
6- name: 'Fingerprint Process Open Client Response with Fastly KV Storage ',
7- callback: fingerprintProcessOpenClientResponseKVStorage ,
8- type: 'processOpenClientResponse',
9- }*/
5+ // {
6+ // name: 'Save Fingerprint Result to KV Store ',
7+ // callback: saveFingerprintResultToKVStore ,
8+ // type: 'processOpenClientResponse',
9+ // },
1010] satisfies Plugin [ ]
Original file line number Diff line number Diff line change 1- // To enable this plugin, please replace the suffix from `.example.ts` to `.ts`
1+ // To enable this plugin, add an entry to `/plugins/index .ts`
22
33import { KVStore } from 'fastly:kv-store'
44import { ProcessOpenClientResponseContext } from '../src/utils/registerPlugin'
5- export async function fingerprintProcessOpenClientResponseKVStorage ( context : ProcessOpenClientResponseContext ) {
5+ export async function saveFingerprintResultToKVStore ( context : ProcessOpenClientResponseContext ) {
66 const requestId = context . event ?. products . identification ?. data ?. requestId
77 if ( ! requestId ) {
88 return
Original file line number Diff line number Diff line change 1818 " ./plugins/**/*.ts" ,
1919 " ./test/**/*.ts" ,
2020 ],
21- "exclude" : [
22- " node_modules" ,
23- " ./plugins/**/*.example.ts"
24- ],
21+ "exclude" : [" node_modules" ],
2522 "ts-node" : {
2623 "experimentalSpecifierResolution" : " node" ,
2724 "compilerOptions" : {
You can’t perform that action at this time.
0 commit comments