agent-claw: automated task changes
This commit is contained in:
8
cdk/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/README.txt
generated
vendored
Normal file
8
cdk/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/README.txt
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
Public suffix list obtained from https://publicsuffix.org/.
|
||||
|
||||
We build a lookup map that for 90% of the cases can return the probable intended apex domain.
|
||||
|
||||
We're ignoring Punycode on purpose.
|
||||
|
||||
Whenever you pull a new version of the .dat file, don't forget to run build-map.py.
|
||||
Not integrated as part of the build because this file will change only very rarely.
|
||||
35
cdk/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/build-map.py
generated
vendored
Normal file
35
cdk/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/build-map.py
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env python2.7
|
||||
"""Script to build a lookup map from the lines in the public suffix data list.
|
||||
|
||||
See README.txt in this directory for more info.
|
||||
"""
|
||||
import re
|
||||
import json
|
||||
|
||||
trie = {}
|
||||
|
||||
with open('public_suffix_list.dat', 'r') as f:
|
||||
for line in f:
|
||||
line = line.strip()
|
||||
|
||||
# All reasons to skip this line
|
||||
if not line: continue
|
||||
if line.startswith('//'): continue
|
||||
if re.search('[^a-z0-9.]', line): continue
|
||||
|
||||
# *. at the start is the same as it not being there
|
||||
if line.startswith('*.'): line = line[2:]
|
||||
|
||||
# Add to the trie
|
||||
parts = line.split('.')
|
||||
parts.reverse()
|
||||
|
||||
curr = trie
|
||||
for part in parts:
|
||||
curr = curr.setdefault(part, {})
|
||||
|
||||
|
||||
with open('../lib/public-suffixes.ts', 'w') as o:
|
||||
o.write('// This file has been generated using ../suffixes/build-map.py\n')
|
||||
o.write('/* eslint-disable no-trailing-spaces, quote-props */\n')
|
||||
o.write('export const publicSuffixes = %s;' % json.dumps(trie, indent=2))
|
||||
12472
cdk/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/public_suffix_list.dat
generated
vendored
Normal file
12472
cdk/node_modules/aws-cdk-lib/aws-certificatemanager/suffixes/public_suffix_list.dat
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user