@autonoma-io/a6s 5.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +200 -0
- package/bin/binaries/a6s-darwin-amd64 +0 -0
- package/bin/binaries/a6s-darwin-arm64 +0 -0
- package/bin/binaries/a6s-linux-amd64 +0 -0
- package/bin/binaries/a6s-linux-arm64 +0 -0
- package/bin/binaries/a6s-win32-x64.exe +0 -0
- package/dist/commands/ai-learning-demo.d.ts +3 -0
- package/dist/commands/ai-learning-demo.d.ts.map +1 -0
- package/dist/commands/ai-learning-demo.js +176 -0
- package/dist/commands/ai-learning-demo.js.map +1 -0
- package/dist/commands/auth.d.ts +33 -0
- package/dist/commands/auth.d.ts.map +1 -0
- package/dist/commands/auth.js +603 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/consent/consent.d.ts +74 -0
- package/dist/consent/consent.d.ts.map +1 -0
- package/dist/consent/consent.js +184 -0
- package/dist/consent/consent.js.map +1 -0
- package/dist/consent/disclosure.d.ts +26 -0
- package/dist/consent/disclosure.d.ts.map +1 -0
- package/dist/consent/disclosure.js +170 -0
- package/dist/consent/disclosure.js.map +1 -0
- package/dist/consent/ignore.d.ts +50 -0
- package/dist/consent/ignore.d.ts.map +1 -0
- package/dist/consent/ignore.js +277 -0
- package/dist/consent/ignore.js.map +1 -0
- package/dist/consent/index.d.ts +4 -0
- package/dist/consent/index.d.ts.map +1 -0
- package/dist/consent/index.js +23 -0
- package/dist/consent/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +390 -0
- package/dist/index.js.map +1 -0
- package/dist/interactive.d.ts +19 -0
- package/dist/interactive.d.ts.map +1 -0
- package/dist/interactive.js +367 -0
- package/dist/interactive.js.map +1 -0
- package/dist/modules/ab-testing.d.ts +16 -0
- package/dist/modules/ab-testing.d.ts.map +1 -0
- package/dist/modules/ab-testing.js +375 -0
- package/dist/modules/ab-testing.js.map +1 -0
- package/dist/modules/ai-orchestration.d.ts +70 -0
- package/dist/modules/ai-orchestration.d.ts.map +1 -0
- package/dist/modules/ai-orchestration.js +546 -0
- package/dist/modules/ai-orchestration.js.map +1 -0
- package/dist/modules/auth-access-control.d.ts +118 -0
- package/dist/modules/auth-access-control.d.ts.map +1 -0
- package/dist/modules/auth-access-control.js +832 -0
- package/dist/modules/auth-access-control.js.map +1 -0
- package/dist/modules/campaign.d.ts +20 -0
- package/dist/modules/campaign.d.ts.map +1 -0
- package/dist/modules/campaign.js +301 -0
- package/dist/modules/campaign.js.map +1 -0
- package/dist/modules/database.d.ts +14 -0
- package/dist/modules/database.d.ts.map +1 -0
- package/dist/modules/database.js +253 -0
- package/dist/modules/database.js.map +1 -0
- package/dist/modules/deployment.d.ts +17 -0
- package/dist/modules/deployment.d.ts.map +1 -0
- package/dist/modules/deployment.js +201 -0
- package/dist/modules/deployment.js.map +1 -0
- package/dist/modules/edge-computing.d.ts +130 -0
- package/dist/modules/edge-computing.d.ts.map +1 -0
- package/dist/modules/edge-computing.js +672 -0
- package/dist/modules/edge-computing.js.map +1 -0
- package/dist/modules/load-testing.d.ts +21 -0
- package/dist/modules/load-testing.d.ts.map +1 -0
- package/dist/modules/load-testing.js +372 -0
- package/dist/modules/load-testing.js.map +1 -0
- package/dist/modules/monitoring.d.ts +18 -0
- package/dist/modules/monitoring.d.ts.map +1 -0
- package/dist/modules/monitoring.js +375 -0
- package/dist/modules/monitoring.js.map +1 -0
- package/dist/modules/onboarding.d.ts +20 -0
- package/dist/modules/onboarding.d.ts.map +1 -0
- package/dist/modules/onboarding.js +455 -0
- package/dist/modules/onboarding.js.map +1 -0
- package/dist/nlp/memory.d.ts +43 -0
- package/dist/nlp/memory.d.ts.map +1 -0
- package/dist/nlp/memory.js +205 -0
- package/dist/nlp/memory.js.map +1 -0
- package/dist/nlp/processor.d.ts +29 -0
- package/dist/nlp/processor.d.ts.map +1 -0
- package/dist/nlp/processor.js +321 -0
- package/dist/nlp/processor.js.map +1 -0
- package/dist/utils/db-client.d.ts +35 -0
- package/dist/utils/db-client.d.ts.map +1 -0
- package/dist/utils/db-client.js +132 -0
- package/dist/utils/db-client.js.map +1 -0
- package/package.json +97 -0
- package/scripts/chmod-binaries.js +33 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.IgnoreManager = exports.IGNORE_FILE_NAME = void 0;
|
|
37
|
+
exports.getDefaultIgnoreContent = getDefaultIgnoreContent;
|
|
38
|
+
exports.createDefaultIgnoreFile = createDefaultIgnoreFile;
|
|
39
|
+
const fs = __importStar(require("fs"));
|
|
40
|
+
const path = __importStar(require("path"));
|
|
41
|
+
exports.IGNORE_FILE_NAME = '.autonomaignore';
|
|
42
|
+
/**
|
|
43
|
+
* IgnoreManager handles .autonomaignore file operations
|
|
44
|
+
*/
|
|
45
|
+
class IgnoreManager {
|
|
46
|
+
projectRoot;
|
|
47
|
+
patterns = [];
|
|
48
|
+
constructor(projectRoot) {
|
|
49
|
+
this.projectRoot = projectRoot;
|
|
50
|
+
this.loadPatterns();
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Get the path to the ignore file
|
|
54
|
+
*/
|
|
55
|
+
getIgnorePath() {
|
|
56
|
+
return path.join(this.projectRoot, exports.IGNORE_FILE_NAME);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Load patterns from the ignore file
|
|
60
|
+
*/
|
|
61
|
+
loadPatterns() {
|
|
62
|
+
const ignorePath = this.getIgnorePath();
|
|
63
|
+
if (!fs.existsSync(ignorePath)) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
const content = fs.readFileSync(ignorePath, 'utf-8');
|
|
68
|
+
const lines = content.split('\n');
|
|
69
|
+
for (const line of lines) {
|
|
70
|
+
const trimmed = line.trim();
|
|
71
|
+
// Skip empty lines and comments
|
|
72
|
+
if (trimmed === '' || trimmed.startsWith('#')) {
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
this.patterns.push(trimmed);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
catch (err) {
|
|
79
|
+
// Ignore errors - patterns will be empty
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Check if a file path should be ignored
|
|
84
|
+
*/
|
|
85
|
+
shouldIgnore(filePath) {
|
|
86
|
+
const relPath = path.relative(this.projectRoot, filePath);
|
|
87
|
+
const normalizedPath = relPath.split(path.sep).join('/');
|
|
88
|
+
for (const pattern of this.patterns) {
|
|
89
|
+
if (this.matchPattern(normalizedPath, pattern)) {
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Get all loaded patterns
|
|
97
|
+
*/
|
|
98
|
+
getPatterns() {
|
|
99
|
+
return [...this.patterns];
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Check if the ignore file exists
|
|
103
|
+
*/
|
|
104
|
+
exists() {
|
|
105
|
+
return fs.existsSync(this.getIgnorePath());
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Match a path against a pattern
|
|
109
|
+
*/
|
|
110
|
+
matchPattern(filePath, pattern) {
|
|
111
|
+
// Normalize pattern
|
|
112
|
+
const normalizedPattern = pattern.split(path.sep).join('/');
|
|
113
|
+
// Handle directory patterns (ending with /)
|
|
114
|
+
if (normalizedPattern.endsWith('/')) {
|
|
115
|
+
const dirPattern = normalizedPattern.slice(0, -1);
|
|
116
|
+
if (filePath.startsWith(dirPattern + '/') || filePath === dirPattern) {
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
// Handle ** (matches any path)
|
|
121
|
+
if (normalizedPattern.includes('**')) {
|
|
122
|
+
return this.matchDoubleGlob(filePath, normalizedPattern);
|
|
123
|
+
}
|
|
124
|
+
// Handle simple glob patterns
|
|
125
|
+
if (this.simpleMatch(filePath, normalizedPattern)) {
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
// Try matching just the filename
|
|
129
|
+
const fileName = path.basename(filePath);
|
|
130
|
+
if (this.simpleMatch(fileName, normalizedPattern)) {
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
// Try matching path components
|
|
134
|
+
const parts = filePath.split('/');
|
|
135
|
+
for (const part of parts) {
|
|
136
|
+
if (this.simpleMatch(part, normalizedPattern)) {
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Handle ** glob patterns
|
|
144
|
+
*/
|
|
145
|
+
matchDoubleGlob(filePath, pattern) {
|
|
146
|
+
const parts = pattern.split('**');
|
|
147
|
+
if (parts.length === 1) {
|
|
148
|
+
return this.simpleMatch(filePath, pattern);
|
|
149
|
+
}
|
|
150
|
+
// Handle **/suffix pattern
|
|
151
|
+
if (parts[0] === '' && parts.length === 2) {
|
|
152
|
+
const suffix = parts[1].replace(/^\//, '');
|
|
153
|
+
if (suffix === '') {
|
|
154
|
+
return true; // ** matches everything
|
|
155
|
+
}
|
|
156
|
+
if (filePath.endsWith(suffix) || filePath.endsWith('/' + suffix)) {
|
|
157
|
+
return true;
|
|
158
|
+
}
|
|
159
|
+
if (filePath.includes('/' + suffix + '/')) {
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
if (filePath.startsWith(suffix + '/') || filePath === suffix) {
|
|
163
|
+
return true;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
// Handle prefix/** pattern
|
|
167
|
+
if (parts[1] === '' && parts.length === 2) {
|
|
168
|
+
const prefix = parts[0].replace(/\/$/, '');
|
|
169
|
+
if (filePath.startsWith(prefix + '/') || filePath === prefix) {
|
|
170
|
+
return true;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
return false;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Simple glob matching (supports * and ?)
|
|
177
|
+
*/
|
|
178
|
+
simpleMatch(text, pattern) {
|
|
179
|
+
// Convert glob pattern to regex
|
|
180
|
+
const regexPattern = pattern
|
|
181
|
+
.replace(/[.+^${}()|[\]\\]/g, '\\$&') // Escape special chars
|
|
182
|
+
.replace(/\*/g, '.*') // * matches anything
|
|
183
|
+
.replace(/\?/g, '.'); // ? matches single char
|
|
184
|
+
try {
|
|
185
|
+
const regex = new RegExp(`^${regexPattern}$`);
|
|
186
|
+
return regex.test(text);
|
|
187
|
+
}
|
|
188
|
+
catch {
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
exports.IgnoreManager = IgnoreManager;
|
|
194
|
+
/**
|
|
195
|
+
* Get default .autonomaignore content
|
|
196
|
+
*/
|
|
197
|
+
function getDefaultIgnoreContent() {
|
|
198
|
+
return `# Autonoma Ignore File
|
|
199
|
+
# Files and directories matching these patterns will not be accessed by Autonoma Code
|
|
200
|
+
|
|
201
|
+
# Version control
|
|
202
|
+
.git/
|
|
203
|
+
.svn/
|
|
204
|
+
.hg/
|
|
205
|
+
|
|
206
|
+
# Dependencies
|
|
207
|
+
node_modules/
|
|
208
|
+
vendor/
|
|
209
|
+
.venv/
|
|
210
|
+
__pycache__/
|
|
211
|
+
.cache/
|
|
212
|
+
|
|
213
|
+
# Build outputs
|
|
214
|
+
dist/
|
|
215
|
+
build/
|
|
216
|
+
target/
|
|
217
|
+
out/
|
|
218
|
+
*.exe
|
|
219
|
+
*.dll
|
|
220
|
+
*.so
|
|
221
|
+
*.dylib
|
|
222
|
+
|
|
223
|
+
# Secrets and credentials
|
|
224
|
+
.env
|
|
225
|
+
.env.*
|
|
226
|
+
*.key
|
|
227
|
+
*.pem
|
|
228
|
+
*.p12
|
|
229
|
+
*.pfx
|
|
230
|
+
credentials.json
|
|
231
|
+
secrets.yaml
|
|
232
|
+
*.secret
|
|
233
|
+
|
|
234
|
+
# IDE settings
|
|
235
|
+
.idea/
|
|
236
|
+
.vscode/
|
|
237
|
+
*.swp
|
|
238
|
+
*.swo
|
|
239
|
+
*~
|
|
240
|
+
|
|
241
|
+
# Binary files
|
|
242
|
+
*.jpg
|
|
243
|
+
*.jpeg
|
|
244
|
+
*.png
|
|
245
|
+
*.gif
|
|
246
|
+
*.ico
|
|
247
|
+
*.pdf
|
|
248
|
+
*.zip
|
|
249
|
+
*.tar
|
|
250
|
+
*.gz
|
|
251
|
+
*.rar
|
|
252
|
+
*.7z
|
|
253
|
+
|
|
254
|
+
# Logs
|
|
255
|
+
*.log
|
|
256
|
+
logs/
|
|
257
|
+
|
|
258
|
+
# OS files
|
|
259
|
+
.DS_Store
|
|
260
|
+
Thumbs.db
|
|
261
|
+
|
|
262
|
+
# Custom exclusions
|
|
263
|
+
# Add your own patterns below
|
|
264
|
+
`;
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Create a default .autonomaignore file
|
|
268
|
+
*/
|
|
269
|
+
function createDefaultIgnoreFile(projectRoot) {
|
|
270
|
+
const ignorePath = path.join(projectRoot, exports.IGNORE_FILE_NAME);
|
|
271
|
+
if (fs.existsSync(ignorePath)) {
|
|
272
|
+
return; // File already exists
|
|
273
|
+
}
|
|
274
|
+
const content = getDefaultIgnoreContent();
|
|
275
|
+
fs.writeFileSync(ignorePath, content, 'utf-8');
|
|
276
|
+
}
|
|
277
|
+
//# sourceMappingURL=ignore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ignore.js","sourceRoot":"","sources":["../../src/consent/ignore.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0LA,0DAoEC;AAKD,0DASC;AA5QD,uCAAyB;AACzB,2CAA6B;AAEhB,QAAA,gBAAgB,GAAG,iBAAiB,CAAC;AAElD;;GAEG;AACH,MAAa,aAAa;IAChB,WAAW,CAAS;IACpB,QAAQ,GAAa,EAAE,CAAC;IAEhC,YAAY,WAAmB;QAC7B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAED;;O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AAE,CAAC;QAC9B,OAAO,CAAC,sBAAsB;IAChC,CAAC;IAED,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAC1C,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ConsentManager, DirectoryConsent, ConsentScope, getDefaultExclusions, CONSENT_DIR, CONSENT_FILE, CONSENT_VERSION, } from './consent';
|
|
2
|
+
export { showDisclosure, showConsentStatus, showConsentGranted, showConsentRevoked, showConsentDenied, showNoConsent, } from './disclosure';
|
|
3
|
+
export { IgnoreManager, getDefaultIgnoreContent, createDefaultIgnoreFile, IGNORE_FILE_NAME, } from './ignore';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/consent/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,OAAO,EACL,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,aAAa,GACd,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,GACjB,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IGNORE_FILE_NAME = exports.createDefaultIgnoreFile = exports.getDefaultIgnoreContent = exports.IgnoreManager = exports.showNoConsent = exports.showConsentDenied = exports.showConsentRevoked = exports.showConsentGranted = exports.showConsentStatus = exports.showDisclosure = exports.CONSENT_VERSION = exports.CONSENT_FILE = exports.CONSENT_DIR = exports.getDefaultExclusions = exports.ConsentManager = void 0;
|
|
4
|
+
// Consent management for Autonoma Code
|
|
5
|
+
var consent_1 = require("./consent");
|
|
6
|
+
Object.defineProperty(exports, "ConsentManager", { enumerable: true, get: function () { return consent_1.ConsentManager; } });
|
|
7
|
+
Object.defineProperty(exports, "getDefaultExclusions", { enumerable: true, get: function () { return consent_1.getDefaultExclusions; } });
|
|
8
|
+
Object.defineProperty(exports, "CONSENT_DIR", { enumerable: true, get: function () { return consent_1.CONSENT_DIR; } });
|
|
9
|
+
Object.defineProperty(exports, "CONSENT_FILE", { enumerable: true, get: function () { return consent_1.CONSENT_FILE; } });
|
|
10
|
+
Object.defineProperty(exports, "CONSENT_VERSION", { enumerable: true, get: function () { return consent_1.CONSENT_VERSION; } });
|
|
11
|
+
var disclosure_1 = require("./disclosure");
|
|
12
|
+
Object.defineProperty(exports, "showDisclosure", { enumerable: true, get: function () { return disclosure_1.showDisclosure; } });
|
|
13
|
+
Object.defineProperty(exports, "showConsentStatus", { enumerable: true, get: function () { return disclosure_1.showConsentStatus; } });
|
|
14
|
+
Object.defineProperty(exports, "showConsentGranted", { enumerable: true, get: function () { return disclosure_1.showConsentGranted; } });
|
|
15
|
+
Object.defineProperty(exports, "showConsentRevoked", { enumerable: true, get: function () { return disclosure_1.showConsentRevoked; } });
|
|
16
|
+
Object.defineProperty(exports, "showConsentDenied", { enumerable: true, get: function () { return disclosure_1.showConsentDenied; } });
|
|
17
|
+
Object.defineProperty(exports, "showNoConsent", { enumerable: true, get: function () { return disclosure_1.showNoConsent; } });
|
|
18
|
+
var ignore_1 = require("./ignore");
|
|
19
|
+
Object.defineProperty(exports, "IgnoreManager", { enumerable: true, get: function () { return ignore_1.IgnoreManager; } });
|
|
20
|
+
Object.defineProperty(exports, "getDefaultIgnoreContent", { enumerable: true, get: function () { return ignore_1.getDefaultIgnoreContent; } });
|
|
21
|
+
Object.defineProperty(exports, "createDefaultIgnoreFile", { enumerable: true, get: function () { return ignore_1.createDefaultIgnoreFile; } });
|
|
22
|
+
Object.defineProperty(exports, "IGNORE_FILE_NAME", { enumerable: true, get: function () { return ignore_1.IGNORE_FILE_NAME; } });
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/consent/index.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AACvC,qCAQmB;AAPjB,yGAAA,cAAc,OAAA;AAGd,+GAAA,oBAAoB,OAAA;AACpB,sGAAA,WAAW,OAAA;AACX,uGAAA,YAAY,OAAA;AACZ,0GAAA,eAAe,OAAA;AAGjB,2CAOsB;AANpB,4GAAA,cAAc,OAAA;AACd,+GAAA,iBAAiB,OAAA;AACjB,gHAAA,kBAAkB,OAAA;AAClB,gHAAA,kBAAkB,OAAA;AAClB,+GAAA,iBAAiB,OAAA;AACjB,2GAAA,aAAa,OAAA;AAGf,mCAKkB;AAJhB,uGAAA,aAAa,OAAA;AACb,iHAAA,uBAAuB,OAAA;AACvB,iHAAA,uBAAuB,OAAA;AACvB,0GAAA,gBAAgB,OAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|