From 3cc050187760c758c4760121281ff9a7e0b626f5 Mon Sep 17 00:00:00 2001
From: "(quasar) nebula" <qznebula@protonmail.com>
Date: Sat, 11 Jan 2025 16:23:34 -0400
Subject: find: move decorate-token behavior into find-reverse

---
 src/find.js | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'src/find.js')

diff --git a/src/find.js b/src/find.js
index ec28ab15..d1435fb5 100644
--- a/src/find.js
+++ b/src/find.js
@@ -7,6 +7,12 @@ import {isFunction, validateArrayItems} from '#validators';
 
 import * as fr from './find-reverse.js';
 
+import {
+  tokenKey as findTokenKey,
+} from './find-reverse.js';
+
+export {findTokenKey};
+
 function warnOrThrow(mode, message) {
   if (mode === 'error') {
     throw new Error(message);
@@ -278,7 +284,6 @@ export function findFindSpec(key) {
   return fr.findSpec(key, findReverseHelperConfig);
 }
 
-export const findTokenKey = Symbol.for('find.findTokenKey');
 export const boundFindData = Symbol.for('find.boundFindData');
 export const boundFindOptions = Symbol.for('find.boundFindOptions');
 
@@ -403,10 +408,6 @@ export default fr.tokenProxy({
       return findMixed;
     }
   },
-
-  decorate(token, key) {
-    token[findTokenKey] = key;
-  },
 });
 
 // Handy utility function for binding the find.thing() functions to a complete
-- 
cgit 1.3.0-6-gf8a5