navigation-stack 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +3 -3
  2. package/package.json +2 -2
package/lib/index.d.ts CHANGED
@@ -184,7 +184,7 @@ export const Actions: {
184
184
  init(): InitAction;
185
185
  push(location: InputLocation): PushAction;
186
186
  replace(location: InputLocation): ReplaceAction;
187
- go(delta: number): RewindAction;
187
+ shift(delta: number): RewindAction;
188
188
  dispose(): DisposeAction;
189
189
  };
190
190
 
@@ -199,7 +199,7 @@ export interface Environment {
199
199
 
200
200
  navigate(location: LocationBase): Location;
201
201
 
202
- go(delta: number): void;
202
+ shift(delta: number): void;
203
203
 
204
204
  addBeforeDestroyListener(listener: BeforeDestroyListener): void;
205
205
 
@@ -218,7 +218,7 @@ declare abstract class EnvironmentBase implements Environment {
218
218
 
219
219
  navigate(location: LocationBase): Location;
220
220
 
221
- go(delta: number): void;
221
+ shift(delta: number): void;
222
222
 
223
223
  addBeforeDestroyListener(listener: BeforeDestroyListener): void;
224
224
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "navigation-stack",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Handles navigation in a web browser",
5
5
  "keywords": [
6
6
  "history",
@@ -27,7 +27,7 @@
27
27
  "build:types": "cpy types/*.d.ts lib",
28
28
  "format": "4c format --prettier-ignore .eslintignore .",
29
29
  "lint": "4c lint --prettier-ignore .eslintignore .",
30
- "prepublish": "npm run build",
30
+ "prepublishOnly": "npm run build",
31
31
  "release": "4c release",
32
32
  "tdd": "cross-env NODE_ENV=test karma start karma.conf.cjs",
33
33
  "test": "npm run lint && npm run test:ts && npm run testonly",