Skip to content

Commit

Permalink
Merge pull request #52 from fingerprintjs/feature/rename
Browse files Browse the repository at this point in the history
rename fingerprintjs to fingerprint
  • Loading branch information
Sergey Shelomentsev authored May 4, 2023
2 parents 5f8e172 + f355234 commit 3f842b7
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
Fingerprint Pro Azure Integration is responsible for proxying identification and agent-download requests that are performed on your Azure infrastructure.

## License
This project is licensed under the MIT license. See the [LICENSE](https://github.com/fingerprintjs/fingerprintjs-pro-azure-integration/blob/main/LICENSE) file for more info.
This project is licensed under the MIT license. See the [LICENSE](https://github.com/fingerprintjs/fingerprint-pro-azure-integration/blob/main/LICENSE) file for more info.
2 changes: 1 addition & 1 deletion assets/license_banner.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FingerprintJS Pro Azure function v<%= pkg.version %> - Copyright (c) FingerprintJS, Inc, <%= new Date().getFullYear() %> (https://fingerprint.com)
Fingerprint Pro Azure function v<%= pkg.version %> - Copyright (c) FingerprintJS, Inc, <%= new Date().getFullYear() %> (https://fingerprint.com)
Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) license.
2 changes: 1 addition & 1 deletion management/function.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"runOnStartup": true
}
],
"scriptFile": "../dist/fingerprintjs-pro-azure-function-management/fingerprintjs-pro-azure-function-management.js"
"scriptFile": "../dist/fingerprint-pro-azure-function-management/fingerprint-pro-azure-function-management.js"
}
6 changes: 3 additions & 3 deletions management/site.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ describe('getSiteStatusUrl', () => {
client.webApps.listFunctions.mockImplementation(async function* () {
yield {
config: {
scriptFile: './fingerprintjs-pro-azure-function-management.js',
scriptFile: './fingerprint-pro-azure-function-management.js',
},
}

yield {
config: {
scriptFile: './fingerprintjs-pro-azure-function.js',
scriptFile: './fingerprint-pro-azure-function.js',
},
invokeUrlTemplate: 'https://example.com/fpjs/{*restofpath}',
}
Expand All @@ -36,7 +36,7 @@ describe('getSiteStatusUrl', () => {
client.webApps.listFunctions.mockImplementation(async function* () {
yield {
config: {
scriptFile: './fingerprintjs-pro-azure-function-management.js',
scriptFile: './fingerprint-pro-azure-function-management.js',
},
}
})
Expand Down
4 changes: 2 additions & 2 deletions management/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ async function findProxyFunction(

export function isProxyFunction(fn: FunctionEnvelope) {
return (
fn.config?.scriptFile === './fingerprintjs-pro-azure-function.js' ||
fn.name?.endsWith('fingerprintjs-pro-azure-function')
fn.config?.scriptFile === './fingerprint-pro-azure-function.js' ||
fn.name?.endsWith('fingerprint-pro-azure-function')
)
}

Expand Down
2 changes: 1 addition & 1 deletion proxy/function.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"name": "res"
}
],
"scriptFile": "../dist/fingerprintjs-pro-azure-function/fingerprintjs-pro-azure-function.js"
"scriptFile": "../dist/fingerprint-pro-azure-function/fingerprint-pro-azure-function.js"
}
4 changes: 2 additions & 2 deletions proxy/utils/traffic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('test procdn call', () => {
addTrafficMonitoringSearchParamsForProCDN(url)

const param = url.searchParams.get('ii')
expect(param).toBe('fingerprintjs-pro-azure/__azure_function_version__/procdn')
expect(param).toBe('fingerprint-pro-azure/__azure_function_version__/procdn')
})
})

Expand All @@ -19,6 +19,6 @@ describe('test visitor call', () => {
addTrafficMonitoringSearchParamsForVisitorIdRequest(url)

const param = url.searchParams.get('ii')
expect(param).toBe('fingerprintjs-pro-azure/__azure_function_version__/ingress')
expect(param).toBe('fingerprint-pro-azure/__azure_function_version__/ingress')
})
})
2 changes: 1 addition & 1 deletion proxy/utils/traffic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ export function addTrafficMonitoringSearchParamsForVisitorIdRequest(url: URL) {
}

function getTrafficMonitoringValue(type: 'procdn' | 'ingress'): string {
return `fingerprintjs-pro-azure/${FUNCTION_VERSION}/${type}`
return `fingerprint-pro-azure/${FUNCTION_VERSION}/${type}`
}
4 changes: 2 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ export default (opts) => {
* @type {import('rollup').RollupOptions[]}
* */
return [
...makeConfig(opts, 'proxy/index.ts', 'fingerprintjs-pro-azure-function', 'proxy/function.json'),
...makeConfig(opts, 'proxy/index.ts', 'fingerprint-pro-azure-function', 'proxy/function.json'),
...makeConfig(
opts,
'management/index.ts',
'fingerprintjs-pro-azure-function-management',
'fingerprint-pro-azure-function-management',
'management/function.json',
(config, isDev) => {
if (!isDev && config.bindings[0].runOnStartup) {
Expand Down

0 comments on commit 3f842b7

Please sign in to comment.