New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@stackflow/plugin-map-initial-activity

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stackflow/plugin-map-initial-activity - npm Package Compare versions

Comparing version
1.0.6
to
1.0.7
+1
-1
dist/index.js

@@ -45,3 +45,3 @@ "use strict";

activityParams: decoded.activityParams,
eventDate: new Date().getTime() - MINUTE
eventDate: (/* @__PURE__ */ new Date()).getTime() - MINUTE
})

@@ -48,0 +48,0 @@ ];

@@ -5,4 +5,4 @@ {

"sourcesContent": ["export * from \"./mapInitialActivityPlugin\";\n", "import { id, makeEvent } from \"@stackflow/core\";\nimport type { StackflowReactPlugin } from \"@stackflow/react\";\n\nconst SECOND = 1000;\nconst MINUTE = 60 * SECOND;\n\ntype MapInitialActivityPluginOptions = {\n mapper(url: URL): {\n activityName: string;\n activityParams: {};\n } | null;\n};\n\nexport function mapInitialActivityPlugin(\n options: MapInitialActivityPluginOptions,\n): StackflowReactPlugin {\n return () => ({\n key: \"@stackflow/plugin-override-initial-activity\",\n overrideInitialEvents({ initialEvents }) {\n const decoded = options.mapper(new URL(window.location.href));\n\n if (!decoded) {\n return initialEvents;\n }\n\n const activityId = id();\n\n return [\n makeEvent(\"Pushed\", {\n activityId,\n activityName: decoded.activityName,\n activityParams: decoded.activityParams,\n eventDate: new Date().getTime() - MINUTE,\n }),\n ];\n },\n });\n}\n"],
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAA8B;AAG9B,IAAM,SAAS;AACf,IAAM,SAAS,KAAK;AASb,SAAS,yBACd,SACsB;AACtB,SAAO,OAAO;AAAA,IACZ,KAAK;AAAA,IACL,sBAAsB,EAAE,cAAc,GAAG;AACvC,YAAM,UAAU,QAAQ,OAAO,IAAI,IAAI,OAAO,SAAS,IAAI,CAAC;AAE5D,UAAI,CAAC,SAAS;AACZ,eAAO;AAAA,MACT;AAEA,YAAM,iBAAa,gBAAG;AAEtB,aAAO;AAAA,YACL,uBAAU,UAAU;AAAA,UAClB;AAAA,UACA,cAAc,QAAQ;AAAA,UACtB,gBAAgB,QAAQ;AAAA,UACxB,WAAW,IAAI,KAAK,EAAE,QAAQ,IAAI;AAAA,QACpC,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;",
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,kBAA8B;AAG9B,IAAM,SAAS;AACf,IAAM,SAAS,KAAK;AASb,SAAS,yBACd,SACsB;AACtB,SAAO,OAAO;AAAA,IACZ,KAAK;AAAA,IACL,sBAAsB,EAAE,cAAc,GAAG;AACvC,YAAM,UAAU,QAAQ,OAAO,IAAI,IAAI,OAAO,SAAS,IAAI,CAAC;AAE5D,UAAI,CAAC,SAAS;AACZ,eAAO;AAAA,MACT;AAEA,YAAM,iBAAa,gBAAG;AAEtB,aAAO;AAAA,YACL,uBAAU,UAAU;AAAA,UAClB;AAAA,UACA,cAAc,QAAQ;AAAA,UACtB,gBAAgB,QAAQ;AAAA,UACxB,YAAW,oBAAI,KAAK,GAAE,QAAQ,IAAI;AAAA,QACpC,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;",
"names": []
}

@@ -19,3 +19,3 @@ // src/mapInitialActivityPlugin.tsx

activityParams: decoded.activityParams,
eventDate: new Date().getTime() - MINUTE
eventDate: (/* @__PURE__ */ new Date()).getTime() - MINUTE
})

@@ -22,0 +22,0 @@ ];

@@ -5,4 +5,4 @@ {

"sourcesContent": ["import { id, makeEvent } from \"@stackflow/core\";\nimport type { StackflowReactPlugin } from \"@stackflow/react\";\n\nconst SECOND = 1000;\nconst MINUTE = 60 * SECOND;\n\ntype MapInitialActivityPluginOptions = {\n mapper(url: URL): {\n activityName: string;\n activityParams: {};\n } | null;\n};\n\nexport function mapInitialActivityPlugin(\n options: MapInitialActivityPluginOptions,\n): StackflowReactPlugin {\n return () => ({\n key: \"@stackflow/plugin-override-initial-activity\",\n overrideInitialEvents({ initialEvents }) {\n const decoded = options.mapper(new URL(window.location.href));\n\n if (!decoded) {\n return initialEvents;\n }\n\n const activityId = id();\n\n return [\n makeEvent(\"Pushed\", {\n activityId,\n activityName: decoded.activityName,\n activityParams: decoded.activityParams,\n eventDate: new Date().getTime() - MINUTE,\n }),\n ];\n },\n });\n}\n"],
"mappings": ";AAAA,SAAS,IAAI,iBAAiB;AAG9B,IAAM,SAAS;AACf,IAAM,SAAS,KAAK;AASb,SAAS,yBACd,SACsB;AACtB,SAAO,OAAO;AAAA,IACZ,KAAK;AAAA,IACL,sBAAsB,EAAE,cAAc,GAAG;AACvC,YAAM,UAAU,QAAQ,OAAO,IAAI,IAAI,OAAO,SAAS,IAAI,CAAC;AAE5D,UAAI,CAAC,SAAS;AACZ,eAAO;AAAA,MACT;AAEA,YAAM,aAAa,GAAG;AAEtB,aAAO;AAAA,QACL,UAAU,UAAU;AAAA,UAClB;AAAA,UACA,cAAc,QAAQ;AAAA,UACtB,gBAAgB,QAAQ;AAAA,UACxB,WAAW,IAAI,KAAK,EAAE,QAAQ,IAAI;AAAA,QACpC,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;",
"mappings": ";AAAA,SAAS,IAAI,iBAAiB;AAG9B,IAAM,SAAS;AACf,IAAM,SAAS,KAAK;AASb,SAAS,yBACd,SACsB;AACtB,SAAO,OAAO;AAAA,IACZ,KAAK;AAAA,IACL,sBAAsB,EAAE,cAAc,GAAG;AACvC,YAAM,UAAU,QAAQ,OAAO,IAAI,IAAI,OAAO,SAAS,IAAI,CAAC;AAE5D,UAAI,CAAC,SAAS;AACZ,eAAO;AAAA,MACT;AAEA,YAAM,aAAa,GAAG;AAEtB,aAAO;AAAA,QACL,UAAU,UAAU;AAAA,UAClB;AAAA,UACA,cAAc,QAAQ;AAAA,UACtB,gBAAgB,QAAQ;AAAA,UACxB,YAAW,oBAAI,KAAK,GAAE,QAAQ,IAAI;AAAA,QACpC,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EACF;AACF;",
"names": []
}
import type { StackflowReactPlugin } from "@stackflow/react";
declare type MapInitialActivityPluginOptions = {
type MapInitialActivityPluginOptions = {
mapper(url: URL): {

@@ -4,0 +4,0 @@ activityName: string;

{
"name": "@stackflow/plugin-map-initial-activity",
"version": "1.0.6",
"version": "1.0.7",
"repository": {
"type": "git",
"url": "https://github.com/daangn/stackflow.git",
"directory": "extensions/plugin-map-initial-activity"
},
"license": "MIT",

@@ -29,17 +34,8 @@ "exports": {

"devDependencies": {
"@stackflow/core": "^1.0.10",
"@stackflow/esbuild-config": "^1.0.1",
"@stackflow/eslint-config": "^1.0.2",
"@stackflow/react": "^1.1.8",
"@typescript-eslint/eslint-plugin": "^5.32.0",
"@typescript-eslint/parser": "^5.20.0",
"esbuild": "^0.14.51",
"eslint": "^8.13.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-json-format": "^2.0.1",
"eslint-plugin-simple-import-sort": "^7.0.0",
"@stackflow/core": "^1.0.12",
"@stackflow/esbuild-config": "^1.0.2",
"@stackflow/react": "^1.1.10",
"esbuild": "^0.23.0",
"rimraf": "^3.0.2",
"typescript": "^4.7.4"
"typescript": "^5.5.3"
},

@@ -46,0 +42,0 @@ "peerDependencies": {