Fix European trip return heuristic for weekend location tracking
Adjust European short trip heuristic from >3 days to >1 day to correctly detect when user has returned home from European trips. This fixes the April 29-30, 2023 case where the location incorrectly showed "Sankt Georg, Hamburg" instead of "Bristol" when the user was free (no events scheduled) after the foss-north trip ended on April 27. The previous logic required more than 3 days to pass before assuming return home from European countries, but for short European trips by rail/ferry, users typically return within 1-2 days. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
663dc479c2
commit
ea4980a5d7
6407 changed files with 1072847 additions and 18 deletions
20
node_modules/@webpack-cli/info/LICENSE
generated
vendored
Normal file
20
node_modules/@webpack-cli/info/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
Copyright JS Foundation and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
54
node_modules/@webpack-cli/info/README.md
generated
vendored
Normal file
54
node_modules/@webpack-cli/info/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# webpack-cli info
|
||||
|
||||
[![NPM Downloads][downloads]][downloads-url]
|
||||
|
||||
> **Note**
|
||||
>
|
||||
> This package is used by webpack-cli under-the-hood and is not intended for installation
|
||||
|
||||
## Description
|
||||
|
||||
This package returns a set of information related to the local environment.
|
||||
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
#npm
|
||||
npm i -D @webpack-cli/info
|
||||
|
||||
#yarn
|
||||
yarn add -D @webpack-cli/info
|
||||
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
#npx
|
||||
npx webpack info [options]
|
||||
|
||||
#global installation
|
||||
webpack info [options]
|
||||
|
||||
```
|
||||
|
||||
### Args / Flags
|
||||
|
||||
#### Output format
|
||||
|
||||
| Flag | Description | Type |
|
||||
| ------------------------------------- | --------------------------------------- | ------ |
|
||||
| `-o, --output < json or markdown >` | To get the output in a specified format | string |
|
||||
| `-a, --additional-package <value...>` | Adds additional packages to the output | string |
|
||||
|
||||
_Not supported for config_
|
||||
|
||||
#### Options
|
||||
|
||||
| Flag | Description | Type |
|
||||
| ----------- | ------------------------------------------ | ------- |
|
||||
| `--help` | Show help | boolean |
|
||||
| `--version` | Show version number of `@webpack-cli/info` | boolean |
|
||||
|
||||
[downloads]: https://img.shields.io/npm/dm/@webpack-cli/info.svg
|
||||
[downloads-url]: https://www.npmjs.com/package/@webpack-cli/info
|
||||
5
node_modules/@webpack-cli/info/lib/index.d.ts
generated
vendored
Normal file
5
node_modules/@webpack-cli/info/lib/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
import { type IWebpackCLI } from "webpack-cli";
|
||||
declare class InfoCommand {
|
||||
apply(cli: IWebpackCLI): Promise<void>;
|
||||
}
|
||||
export default InfoCommand;
|
||||
17
node_modules/@webpack-cli/info/lib/index.js
generated
vendored
Normal file
17
node_modules/@webpack-cli/info/lib/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
class InfoCommand {
|
||||
async apply(cli) {
|
||||
await cli.makeCommand({
|
||||
name: "info",
|
||||
alias: "i",
|
||||
description: "Outputs information about your system.",
|
||||
usage: "[options]",
|
||||
pkg: "@webpack-cli/info",
|
||||
}, cli.getInfoOptions(), async (options) => {
|
||||
const info = await cli.getInfoOutput(options);
|
||||
cli.logger.raw(info);
|
||||
});
|
||||
}
|
||||
}
|
||||
exports.default = InfoCommand;
|
||||
27
node_modules/@webpack-cli/info/package.json
generated
vendored
Normal file
27
node_modules/@webpack-cli/info/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"name": "@webpack-cli/info",
|
||||
"version": "2.0.2",
|
||||
"description": "Outputs info about system and webpack config",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=14.15.0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/webpack/webpack-cli.git"
|
||||
},
|
||||
"homepage": "https://github.com/webpack/webpack-cli/tree/master/packages/info",
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"gitHead": "e879ce4ef91a9a89ca5ef74f533391cef5ba009d",
|
||||
"peerDependencies": {
|
||||
"webpack": "5.x.x",
|
||||
"webpack-cli": "5.x.x"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue